aboutsummaryrefslogtreecommitdiff
path: root/SBO-Lib/lib/SBO/Lib.pm
diff options
context:
space:
mode:
authorJacob Pipkin <j@dawnrazor.net>2012-06-29 08:16:53 -0500
committerJacob Pipkin <j@dawnrazor.net>2012-06-29 08:16:53 -0500
commit60a8418ff890ca3028f2db59010334f66a7c7c56 (patch)
tree323f1269cc7d2a557462fa936bb3beda5942893f /SBO-Lib/lib/SBO/Lib.pm
parent34a94f936aebf8385756adddc84f0db1be365bdb (diff)
downloadsbotools2-60a8418ff890ca3028f2db59010334f66a7c7c56.tar.xz
fixed precedence bug: system "thing" == 0 or stuff should be system ("thing") == 0 or stuff
Diffstat (limited to 'SBO-Lib/lib/SBO/Lib.pm')
-rw-r--r--SBO-Lib/lib/SBO/Lib.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm
index c50f92b..b02bee1 100644
--- a/SBO-Lib/lib/SBO/Lib.pm
+++ b/SBO-Lib/lib/SBO/Lib.pm
@@ -318,7 +318,7 @@ sub get_distfile {
my $filename = get_filename_from_link ($link);
mkdir ($distfiles) unless -d $distfiles;
chdir ($distfiles);
- system "wget $link" == 0 or die "Unable to wget $link\n";
+ system ("wget $link") == 0 or die "Unable to wget $link\n";
my $md5sum = compute_md5sum ($filename);
$md5sum eq $expected_md5sum or die "md5sum failure for $filename.\n";
return 1;
@@ -536,7 +536,7 @@ sub do_slackbuild {
my ($tempfh, $tempfn) = tempfile (DIR => $tempdir);
close $tempfh;
my $cmd = "/usr/sbin/convertpkg-compat32 -i $pkg -d /tmp | tee $tempfn";
- system $cmd == 0 or die;
+ system ($cmd == 0) or die;
unlink $pkg;
$pkg = get_pkg_name ($tempfn);
}