use Exporter q{import};
our @EXPORT = qw(error message debug vprint doit try_doit doit_redir
- tempdir dispatch
+ tempdir dispatch comparefiles
$verbose $debug $keep);
our $verbose=0;
$i->[0]->(@ARGV);
}
+sub comparefiles {
+ my ($old, $new) = (shift, shift);
+ system('cmp', '-s', $old, $new);
+
+ if ($? == -1 || $? & 127) {
+ die("Failed to execute cmp: $!\n");
+ }
+
+ return $? >> 8;
+}
+
1
return @args;
}
-sub comparefiles {
- my ($old, $new) = (shift, shift);
- system('cmp', '-s', $old, $new);
-
- if ($? == -1 || $? & 127) {
- die("Failed to execute cmp: $!\n");
- }
-
- return $? >> 8;
-}
-
sub testvariant {
my ($old, $tmpin, $bzip2_program, @args) = @_;
next if $param eq '--suse-pbzip2';
die "paranoia check failed on params from delta (@params)";
}
- my @params=split(' ', $delta->{params});
+ @params=split(' ', $delta->{params});
my $program=$delta->{program};
if (! grep { $program eq $_ } @supported_bzip2_programs) {