diff options
Diffstat (limited to 'meta/recipes-devtools/dpkg/dpkg.inc')
-rw-r--r-- | meta/recipes-devtools/dpkg/dpkg.inc | 12 |
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 | ||
50 | do_install_append () { | 50 | do_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 | ||
54 | PROVIDES += "virtual/update-alternatives" | 59 | PROV = "virtual/update-alternatives" |
60 | PROV_virtclass-native = "" | ||
61 | |||
62 | PROVIDES += "${PROV}" | ||
55 | 63 | ||
56 | PACKAGES =+ "update-alternatives-dpkg" | 64 | PACKAGES =+ "update-alternatives-dpkg" |
57 | FILES_update-alternatives-dpkg = "${sbindir}/update-alternatives ${localstatedir}/lib/dpkg/alternatives ${sysconfdir}/alternatives" | 65 | FILES_update-alternatives-dpkg = "${sbindir}/update-alternatives ${localstatedir}/lib/dpkg/alternatives ${sysconfdir}/alternatives" |