From 6b03e1f28a7d7f03ece181467d0c17b9c31611a6 Mon Sep 17 00:00:00 2001 From: Jacob Pipkin Date: Sun, 25 Nov 2012 14:00:29 -0600 Subject: only call get_from_info if $location, so sboremove wont crash for removed sbos --- sboremove | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sboremove b/sboremove index c842630..cd74d5c 100755 --- a/sboremove +++ b/sboremove @@ -70,7 +70,8 @@ my ($remove_queue, %required_by, %warnings, @confirmed); sub get_requires ($) { my $location = get_sbo_location (shift); - my $requires = get_from_info (LOCATION => $location, GET => 'REQUIRES'); + my $requires = get_from_info (LOCATION => $location, GET => 'REQUIRES') + if $location; return $requires; } -- cgit v1.2.3