]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
systemd: drop unneeded $D check in prerm
authorChristopher Larson <chris_larson@mentor.com>
Wed, 11 Nov 2015 05:35:43 +0000 (22:35 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 25 Nov 2015 08:01:35 +0000 (08:01 +0000)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/systemd/systemd_225.bb

index 0e89d221a8df790053ea1b7c4acc2dbd12c66b17..428158a15af3cdf30dea93822fb878a402b911b3 100644 (file)
@@ -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