summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/dpkg/dpkg.inc
diff options
context:
space:
mode:
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"