[libconfig-model-perl] 08/09: fixed purge path check
dod at debian.org
dod at debian.org
Fri Jan 17 18:03:50 UTC 2014
This is an automated email from the git hooks/post-receive script.
dod pushed a commit to branch master
in repository libconfig-model-perl.
commit d879d04dd6b6eff1d915151a1c28a690da9c8b4d
Author: Dominique Dumont <dod at debian.org>
Date: Sat Jan 11 18:06:39 2014 +0100
fixed purge path check
---
debian/dh/dh_cme_upgrade | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/debian/dh/dh_cme_upgrade b/debian/dh/dh_cme_upgrade
index 310a984..7be97f3 100644
--- a/debian/dh/dh_cme_upgrade
+++ b/debian/dh/dh_cme_upgrade
@@ -108,9 +108,10 @@ foreach my $package (@do_packages) {
autoscript( $package, config => 'config-script-cme', $munge_sub );
if ($purge) {
- my @pb = grep { m!^/etc/\w+! } split /\s+/, $purge ;
+ my @purge_paths = split /\s+/, $purge ;
+ my @ok = grep { m!^/etc/\w+! } @purge_paths ;
die "Error: cme-purge is not safe ('$purge'). Expected all paths to be something like /etc/foo"
- if @pb ;
+ if @ok < @purge_paths ;
autoscript( $package, postrm => 'postrm-cme', $munge_sub );
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libconfig-model-perl.git
More information about the Pkg-perl-cvs-commits
mailing list