[devscripts] 01/01: uscan: reset count for each watchfile

Osamu Aoki osamu at moszumanska.debian.org
Mon Aug 14 10:52:02 UTC 2017


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

osamu pushed a commit to branch master
in repository devscripts.

commit d3582de109edefe0c6ae5d51f062dc13ab3e1c5c
Author: Osamu Aoki <osamu at debian.org>
Date:   Sun Aug 13 15:53:31 2017 -0400

    uscan: reset count for each watchfile
    
    Fix over-correction for #840232
---
 scripts/uscan.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/uscan.pl b/scripts/uscan.pl
index d98c39d..7d1c738 100755
--- a/scripts/uscan.pl
+++ b/scripts/uscan.pl
@@ -4125,6 +4125,7 @@ sub process_watchfile ($$$$)
 	}
     }
 
+    $origcount = 0; # reset to 0 for each watch file
     unless (open WATCH, $watchfile) {
 	uscan_warn "could not open $watchfile: $!\n";
 	return 1;
@@ -4184,7 +4185,6 @@ sub process_watchfile ($$$$)
 	s/\@ARCHIVE_EXT\@/$archive_ext/g;
 	s/\@SIGNATURE_EXT\@/$signature_ext/g;
 
-    	$origcount = 0; # reset to 0 for each watch file
 	$status +=
 	    process_watchline($_, $watch_version, $dir, $package, $version,
 			      $watchfile);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git



More information about the devscripts-devel mailing list