aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Pipkin <j@dawnrazor.net>2012-11-04 10:51:26 -0600
committerJacob Pipkin <j@dawnrazor.net>2012-11-04 10:51:26 -0600
commitab50ab7cba6054047f51b196b6bc8d9bc359e854 (patch)
treee800380d4b371b27552d6a3494a51be10ed6205f
parent9731880d4c536ed0d5d4d5df15caf2912ede85cf (diff)
downloadsbotools2-ab50ab7cba6054047f51b196b6bc8d9bc359e854.tar.xz
fix for get_sbo_location changes, all unit tests now pass
-rwxr-xr-xsboupgrade6
1 files changed, 3 insertions, 3 deletions
diff --git a/sboupgrade b/sboupgrade
index fae66ab..87c9fce 100755
--- a/sboupgrade
+++ b/sboupgrade
@@ -95,7 +95,7 @@ slackbuilds_or_fetch;
# time verifying each item is a valid slackbuild
my %locations;
for my $sbo_name (@ARGV) {
- $locations{$sbo_name} = get_sbo_location $sbo_name;
+ $locations{$sbo_name} = get_sbo_location ($sbo_name);
die "Unable to locate $sbo_name in the SlackBuilds.org tree.\n" unless
defined $locations{$sbo_name};
}
@@ -118,8 +118,8 @@ sub get_requires ($$) {
return if '%README%' ~~ @$requires;
# do nothing if there's a circular requirement
FIRST: for my $req (@$requires) {
- my $req_req = get_from_info (LOCATION => get_sbo_location $req,
- GET => 'REQUIRES');
+ my $location = get_sbo_location ($req);
+ my $req_req = get_from_info (LOCATION => $location, GET => 'REQUIRES');
if ($sbo ~~ @$req_req) {
say "I am seeing circular requirements between $sbo and $req.";
say "Therefore, I am not going to handle requirements for $sbo.";