From: Christopher Larson Date: Wed, 11 Nov 2015 05:35:43 +0000 (-0700) Subject: systemd: drop unneeded $D check in prerm X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0069c0d3a3d3de20330947aecbd640f0f1d2f281;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git systemd: drop unneeded $D check in prerm (From OE-Core rev: 2bfc772425893ed5674eef76174be6e4b0b5cfd7) Signed-off-by: Christopher Larson Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/systemd/systemd_225.bb b/meta/recipes-core/systemd/systemd_225.bb index 0e89d221a8d..428158a15af 100644 --- a/meta/recipes-core/systemd/systemd_225.bb +++ b/meta/recipes-core/systemd/systemd_225.bb @@ -418,11 +418,7 @@ pkg_postinst_udev-hwdb () { } pkg_prerm_udev-hwdb () { - if test -n "$D"; then - exit 1 - fi - - rm -f ${sysconfdir}/udev/hwdb.bin + rm -f $D${sysconfdir}/udev/hwdb.bin } # As this recipe builds udev, respect systemd being in DISTRO_FEATURES so