From 2bfc772425893ed5674eef76174be6e4b0b5cfd7 Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Tue, 10 Nov 2015 22:35:43 -0700 Subject: systemd: drop unneeded $D check in prerm Signed-off-by: Christopher Larson Signed-off-by: Ross Burton --- meta/recipes-core/systemd/systemd_225.bb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/meta/recipes-core/systemd/systemd_225.bb b/meta/recipes-core/systemd/systemd_225.bb index 0e89d221a8..428158a15a 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 -- cgit 1.2.3-korg