[lintian] 01/02: d/postrm: Remove the "changes" in /var/spool/lintian in purge
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit c8ab635e81b505b68331009061c2ced17d5ad684
Author: Niels Thykier <niels@thykier.net>
Date: Sun Sep 14 17:43:52 2014 +0200
d/postrm: Remove the "changes" in /var/spool/lintian in purge
Signed-off-by: Niels Thykier <niels@thykier.net>
---
debian/changelog | 4 ++++
debian/postrm | 11 +++++------
2 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 11f4484..f472ed6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,10 @@ lintian (2.5.28) UNRELEASED; urgency=medium
* data/cruft/non-free-license:
+ [BR] Detect cc-by-nc-sa license. (Closes: #749768).
+ * debian/postrm:
+ + [NT] Remove the "changes" folder when purging the
+ Lintian lab in /var/spool/lintian.
+
* doc/tutorial/Lintian/Tutorial/WritingChecks.pod:
+ [NT] Mention "safe_qx" as alternative to qx/`` in the
tutorial.
diff --git a/debian/postrm b/debian/postrm
index 486f1ed..d2fe37a 100755
--- a/debian/postrm
+++ b/debian/postrm
@@ -1,17 +1,16 @@
#!/bin/sh
set -e
+LAB_DIRS='binary source udeb info changes'
+
# Try to purge the default lab if it looks like a lab. If the user configured
# a lab for some other location, currently we don't do anything about that.
# Arguably we should parse lintianrc and remove that lab, but I'm not sure
# that's a good idea.
if [ "$1" = "purge" ]; then
- if [ -d "/var/spool/lintian/binary" ]; then
- rm -rf /var/spool/lintian/binary
- rm -rf /var/spool/lintian/source
- rm -rf /var/spool/lintian/udeb
- rm -rf /var/spool/lintian/info
- fi
+ for DIR in $LAB_DIRS ; do
+ rm -rf "/var/spool/lintian/$DIR"
+ done
[ ! -d /var/spool/lintian ] || rmdir --ignore-fail-on-non-empty /var/spool/lintian
fi
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: