diff options
| author | Jacob Pipkin <j@dawnrazor.net> | 2012-11-04 10:51:26 -0600 | 
|---|---|---|
| committer | Jacob Pipkin <j@dawnrazor.net> | 2012-11-04 10:51:26 -0600 | 
| commit | ab50ab7cba6054047f51b196b6bc8d9bc359e854 (patch) | |
| tree | e800380d4b371b27552d6a3494a51be10ed6205f | |
| parent | 9731880d4c536ed0d5d4d5df15caf2912ede85cf (diff) | |
| download | sbotools2-ab50ab7cba6054047f51b196b6bc8d9bc359e854.tar.xz | |
fix for get_sbo_location changes, all unit tests now pass
| -rwxr-xr-x | sboupgrade | 6 | 
1 files changed, 3 insertions, 3 deletions
| @@ -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."; | 
