diff options
author | Modestas Vainius <modestas@vainius.eu> | 2009-03-23 02:23:17 +0200 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-03-23 14:59:13 -0400 |
commit | 66c68aa531bc5a1739be40c25483f036022de7a1 (patch) | |
tree | 4eb57b19e070a427bdffdf94a7308c45c62aa8b8 /dh | |
parent | ce53a5276c9f3a388dce10f442c3c1659e3bccdb (diff) |
Add a global --remaining-packages option.
Add a global --remaining-packages option which allows to skip the command on
the packages which it has already been run on (i.e. if the command helper is
already present in the package debhelper log).
Signed-off-by: Modestas Vainius <modestas@vainius.eu>
Diffstat (limited to 'dh')
-rwxr-xr-x | dh | 17 |
1 files changed, 1 insertions, 16 deletions
@@ -376,7 +376,7 @@ while (@ARGV_orig) { my %logged; my %startpoint; foreach my $package (@packages) { - my @log=loadlog($package); + my @log=load_log($package, \%logged); if ($dh{AFTER}) { # Run commands in the sequence that come after the # specified command. @@ -484,21 +484,6 @@ sub run { } } -sub loadlog { - my $package=shift; - my $ext=pkgext($package); - - my @log; - open(LOG, "<", "debian/${ext}debhelper.log") || return; - while (<LOG>) { - chomp; - push @log, $_; - $logged{$package}{$_}=1; - } - close LOG; - return @log; -} - sub writelog { Debian::Debhelper::Dh_Lib::write_log(@_); } |