Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyh committed Nov 12, 2010
1 parent 5eedd9b commit a7bf9dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Pristine/Tar.pm
Expand Up @@ -10,7 +10,8 @@ use Getopt::Long;
use IPC::Open2;
use Exporter q{import};

our @EXPORT = qw(error message debug vprint doit doit_redir tempdir dispatch
our @EXPORT = qw(error message debug vprint doit try_doit doit_redir
tempdir dispatch
$verbose $debug $keep);

our $verbose=0;
Expand All @@ -34,7 +35,7 @@ sub vprint {
}

sub doit {
if (maybe_doit(@_) != 0) {
if (try_doit(@_) != 0) {
error "command failed: @_";
}
}
Expand Down
4 changes: 2 additions & 2 deletions pristine-tar
Expand Up @@ -325,7 +325,7 @@ sub recreatetarball {

sub recreatetarball_helper {
my $tempdir=$recreatetarball_tempdir;

my $ret="$tempdir/recreatetarball";

doit("tar", "cf", $ret, "--owner", 0, "--group", 0,
Expand Down Expand Up @@ -369,7 +369,7 @@ sub gentar {
my @try;
push @try, sub { recreatetarball($delta->{manifest}, getcwd,
clobber_source => 0, %opts) };
push @try, &recreatetarball_longlink_100;
push @try, \&recreatetarball_longlink_100;

my $ok;
foreach my $variant (@try) {
Expand Down

0 comments on commit a7bf9dc

Please sign in to comment.