From: Christopher Larson Date: Wed, 11 Nov 2015 05:35:43 +0000 (-0700) Subject: systemd: drop unneeded $D check in prerm X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~28343 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bfc772425893ed5674eef76174be6e4b0b5cfd7;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git systemd: drop unneeded $D check in prerm Signed-off-by: Christopher Larson Signed-off-by: Ross Burton --- 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