aboutsummaryrefslogtreecommitdiff
path: root/sboremove
diff options
context:
space:
mode:
authorJacob Pipkin <j@dawnrazor.net>2012-11-25 14:00:29 -0600
committerJacob Pipkin <j@dawnrazor.net>2012-11-25 14:00:29 -0600
commit6b03e1f28a7d7f03ece181467d0c17b9c31611a6 (patch)
treeae01499163f2ced09fcca4c70ef86999cff86d03 /sboremove
parentc0c3cd7b82b143699a6cc45c944a519bf20a7f8f (diff)
downloadsbotools-6b03e1f28a7d7f03ece181467d0c17b9c31611a6.tar.xz
only call get_from_info if $location, so sboremove wont crash for removed sbos
Diffstat (limited to 'sboremove')
-rwxr-xr-xsboremove3
1 files changed, 2 insertions, 1 deletions
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;
}