summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/dpkg/dpkg.inc
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-16 22:01:46 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-30 16:43:47 +0000
commit5db4eaac2d5365704974cc6799d54115276e424a (patch)
tree5881d6a602f39c408a59a7543cd6f9649d3f7ccd /meta/recipes-devtools/dpkg/dpkg.inc
parentf99f36f637a5e20cd4f26b173f8a78d159716e24 (diff)
downloadpoky-5db4eaac2d5365704974cc6799d54115276e424a.tar.gz
update-alternatives: Various fixes
dpkg-native's update-alternatives is broken for offline work so don't install it. Also list update-alternatives in the multiprovider whitelist to avoid unwanted multiple provider warnings when multiple package backends are enabled. (From OE-Core rev: 300336fc4a310ed16a14ad041744708d54aae189) (From OE-Core rev: c90b1faa34e908c7f63e1a64027873858e6d7e8a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/dpkg/dpkg.inc')
-rw-r--r--meta/recipes-devtools/dpkg/dpkg.inc12
1 files changed, 10 insertions, 2 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc
index 9929b3a734..041737b1d2 100644
--- a/meta/recipes-devtools/dpkg/dpkg.inc
+++ b/meta/recipes-devtools/dpkg/dpkg.inc
@@ -48,10 +48,18 @@ rm -f ${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure
48} 48}
49 49
50do_install_append () { 50do_install_append () {
51 mv ${D}${bindir}/update-alternatives ${D}${sbindir} 51 if [ "${PN}" = "dpkg-native" ]; then
52 # update-alternatives doesn't have an offline mode
53 rm ${D}${bindir}/update-alternatives
54 else
55 mv ${D}${bindir}/update-alternatives ${D}${sbindir}
56 fi
52} 57}
53 58
54PROVIDES += "virtual/update-alternatives" 59PROV = "virtual/update-alternatives"
60PROV_virtclass-native = ""
61
62PROVIDES += "${PROV}"
55 63
56PACKAGES =+ "update-alternatives-dpkg" 64PACKAGES =+ "update-alternatives-dpkg"
57FILES_update-alternatives-dpkg = "${sbindir}/update-alternatives ${localstatedir}/lib/dpkg/alternatives ${sysconfdir}/alternatives" 65FILES_update-alternatives-dpkg = "${sbindir}/update-alternatives ${localstatedir}/lib/dpkg/alternatives ${sysconfdir}/alternatives"