]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh
Add a global --remaining-packages option.
[debhelper.git] / dh
diff --git a/dh b/dh
index 8639ed074311b418b2d10b1cf04835491e2042c5..ab7ddb07884b54788a11f8b7197ec8e1c9949b3f 100755 (executable)
--- a/dh
+++ b/dh
@@ -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(@_);
 }