[lintian] 01/01: coll: Implement removal of init.d and doc-base-files
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 9cd8866570200be3f3041ac376e36db2935fcb55
Author: Niels Thykier <niels@thykier.net>
Date: Tue Sep 30 22:42:20 2014 +0200
coll: Implement removal of init.d and doc-base-files
Signed-off-by: Niels Thykier <niels@thykier.net>
---
collection/doc-base-files | 5 +++++
collection/doc-base-files.desc | 1 +
collection/init.d | 5 +++++
3 files changed, 11 insertions(+)
diff --git a/collection/doc-base-files b/collection/doc-base-files
index d3051f2..c7aa29a 100755
--- a/collection/doc-base-files
+++ b/collection/doc-base-files
@@ -37,6 +37,11 @@ sub collect {
or fail('cannot rm old doc-base directory');
}
+ # If we are asked to only remove the files stop right here
+ if ($type =~ m/^remove-/) {
+ return;
+ }
+
if (-d "$dir/unpacked/usr/share/doc-base") {
if (
!is_ancestor_of(
diff --git a/collection/doc-base-files.desc b/collection/doc-base-files.desc
index 627a2ab..92f0340 100644
--- a/collection/doc-base-files.desc
+++ b/collection/doc-base-files.desc
@@ -6,3 +6,4 @@ Type: binary
Version: 2
Needs-Info: unpacked
Interface: perl-coll
+Auto-Remove: yes
diff --git a/collection/init.d b/collection/init.d
index b1ec8ed..cf28100 100755
--- a/collection/init.d
+++ b/collection/init.d
@@ -36,6 +36,11 @@ sub collect {
or fail('cannot rm old init.d directory');
}
+ # If we are asked to only remove the files stop right here
+ if ($type =~ m/^remove-/) {
+ return;
+ }
+
if (-d "$dir/unpacked/etc/init.d") {
if (!is_ancestor_of("$dir/unpacked", "$dir/unpacked/etc/init.d")) {
# Unsafe, stop
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: