diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-04-23 21:30:08 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-04-23 21:30:08 -0400 |
commit | de8057143c644ea4260516a81a365958ba7654eb (patch) | |
tree | 52c37c39828ab0a03bc33d735fb24809f5094497 /dh | |
parent | a287ccd487dfd8c9cf7e1380409f78a8cebf83df (diff) |
updates
Diffstat (limited to 'dh')
-rwxr-xr-x | dh | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -29,7 +29,7 @@ used to set an option like "-v" or "-X" or "-N", as well as for more specialised options. Each debhelper command will record when it's successfully run in -debian/package.log.debhelper. (Which dh_clean deletes.) So dh can tell +debian/package.debhelper.log. (Which dh_clean deletes.) So dh can tell which commands have already been run, for which packages, and skip running those commands again. @@ -367,7 +367,12 @@ sub run { if (! $dh{NO_ACT}) { my $ret=system($command, @options); - exit($ret) if $ret != 0; + if ($ret >> 8 != 0) { + exit $ret >> 8; + } + elsif ($ret) { + exit 1; + } } } @@ -376,7 +381,7 @@ sub loadlog { my $ext=pkgext($package); my @log; - open(LOG, "<", "debian/${ext}log.debhelper"); + open(LOG, "<", "debian/${ext}debhelper.log"); while (<LOG>) { chomp; push @log, $_; |