[debsums] 104/184: --silent with --ignore-permissions

Axel Beckert abe at deuxchevaux.org
Mon Mar 2 21:21:23 UTC 2015


This is an automated email from the git hooks/post-receive script.

abe pushed a commit to branch master
in repository debsums.

commit d9a873cb7f37837a7921e30f4e79052314934880
Author: Ryan Niebur <ryanryan52 at gmail.com>
Date:   Sun Aug 2 17:38:10 2009 -0700

    --silent with --ignore-permissions
---
 debsums.in | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/debsums.in b/debsums.in
index 06d730c..af6bc62 100755
--- a/debsums.in
+++ b/debsums.in
@@ -82,7 +82,9 @@ sub can_ignore {
 
 sub warn_or_die {
   if(can_ignore()) {
-    warn $_[0];
+    unless($silent) {
+      warn $_[0];
+    }
   } else {
     die $_[0];
   }
@@ -279,10 +281,12 @@ sub is_replaced
 		and $path =~ m!^usr/share/(?:man|locale)/([^/]+)/!
 		and !$locales{$1};
 
-	    warn "$self: can't open $pack file $root/$path ($!)\n";
+	    my $err = "$self: can't open $pack file $root/$path ($!)\n";
             if(can_ignore()) {
+              warn $err unless($silent);
               return 0;
             } else {
+              warn $err;
               return 2;
             }
 	}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/debsums.git



More information about the Pkg-perl-cvs-commits mailing list