aboutsummaryrefslogtreecommitdiff
path: root/sboinstall
diff options
context:
space:
mode:
authorJ Pipkin <j@dawnrazor.net>2013-01-10 23:09:30 -0600
committerJ Pipkin <j@dawnrazor.net>2013-01-10 23:09:30 -0600
commit76df5fd14186ca2492274f348f8f0be8d5e7bad6 (patch)
tree6d10afdf1fd07409930cff48c8e60c3c3d0d0439 /sboinstall
parent705b5eadaf1126b135f3d5f3cc9569014462c9fb (diff)
downloadsbotools2-76df5fd14186ca2492274f348f8f0be8d5e7bad6.tar.xz
fix reference passing stuff, fix print_failures(), fix bug pushing empty list which caused sboupgrade/install to die instead of printing failures at the download/verify stage, remove old get_installed_sbos()
Diffstat (limited to 'sboinstall')
-rwxr-xr-xsboinstall8
1 files changed, 4 insertions, 4 deletions
diff --git a/sboinstall b/sboinstall
index fe9c3ef..56e682e 100755
--- a/sboinstall
+++ b/sboinstall
@@ -93,7 +93,7 @@ if ($no_reqs or $non_int) {
}
# populate %locations and sanity check
-$locations = get_sbo_location($build_queue);
+%locations = get_sbo_location($build_queue);
for my $sbo (@$build_queue) {
usage_error "Unable to locate $sbo in the SlackBuilds.org tree." unless
defined $locations{$sbo};
@@ -162,7 +162,7 @@ unless ($non_int) {
exit 0 unless <STDIN> =~ /^[Yy\n]/;
}
-my %failures = process_sbos(
+my $failures = process_sbos(
TODO => $build_queue,
CMDS => \%commands,
OPTS => \%options,
@@ -172,6 +172,6 @@ my %failures = process_sbos(
NOCLEAN => $noclean,
DISTCLEAN => $distclean,
);
-print_failures(%failures);
+print_failures($failures);
-exit keys %failures > 0 ? 1 : 0;
+exit keys %$failures > 0 ? 1 : 0;