summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Larson <chris_larson@mentor.com>2015-11-10 22:35:43 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-11-25 08:01:35 +0000
commit2bfc772425893ed5674eef76174be6e4b0b5cfd7 (patch)
tree9742dfd85143f1123498628b2c3d0e344f9ad3d3
parent4ff6b8cadec10e17dbf884a873a227e29944f5d1 (diff)
downloadopenembedded-core-contrib-2bfc772425893ed5674eef76174be6e4b0b5cfd7.tar.gz
openembedded-core-contrib-2bfc772425893ed5674eef76174be6e4b0b5cfd7.tar.bz2
openembedded-core-contrib-2bfc772425893ed5674eef76174be6e4b0b5cfd7.zip
systemd: drop unneeded $D check in prerm
Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--meta/recipes-core/systemd/systemd_225.bb6
1 files changed, 1 insertions, 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