[SCM] live-boot branch, debian, updated. debian/3.0_a18-1-6-g70f23ec
Daniel Baumann
daniel at debian.org
Wed Jul 13 08:29:27 UTC 2011
The following commit has been merged in the debian branch:
commit 94c6ba70c24090ea1af4a2722eda224dbf8241b2
Author: Daniel Baumann <daniel at debian.org>
Date: Thu Jun 16 22:26:17 2011 +0200
Correct rmdir call in top-level Makefiles uninstall target to not fail if there was no prior live-boot installation.
diff --git a/Makefile b/Makefile
index 138886c..f048690 100644
--- a/Makefile
+++ b/Makefile
@@ -78,7 +78,7 @@ install:
uninstall:
# Uninstalling executables
rm -f $(DESTDIR)/sbin/live-snapshot $(DESTDIR)/sbin/live-swapfile
- rmdir --ignore-fail-on-non-empty $(DESTDIR)/sbin
+ rmdir --ignore-fail-on-non-empty $(DESTDIR)/sbin || true
rm -rf $(DESTDIR)/usr/share/live-boot
@@ -86,18 +86,18 @@ uninstall:
rm -rf $(DESTDIR)/usr/share/initramfs-tools/scripts/live*
rm -f $(DESTDIR)/usr/share/initramfs-tools/scripts/local-top/live
- rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share/initramfs-tools/hooks
- rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share/initramfs-tools/scripts/local-top
- rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share/initramfs-tools/scripts
- rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share/initramfs-tools
- rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share
- rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr
+ rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share/initramfs-tools/hooks || true
+ rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share/initramfs-tools/scripts/local-top || true
+ rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share/initramfs-tools/scripts || true
+ rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share/initramfs-tools || true
+ rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share || true
+ rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr || true
# Uninstalling docs
rm -rf $(DESTDIR)/usr/share/doc/live-boot
- rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share/doc
- rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share
- rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr
+ rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share/doc || true
+ rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr/share || true
+ rmdir --ignore-fail-on-non-empty $(DESTDIR)/usr || true
# Uninstalling manpages
for MANPAGE in manpages/en/*; \
--
live-boot
More information about the debian-live-changes
mailing list