aboutsummaryrefslogtreecommitdiff
path: root/sboremove
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-05-02 15:40:05 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-05-02 15:40:05 +0200
commit594de5067ef8922f1125c948747490550a30a7d9 (patch)
treead589492b4e187dae7c7e6ac998f6bc4b37f04c2 /sboremove
parent8fc7b067e8585a43c0b47d8580232d00072016ef (diff)
downloadsbotools-594de5067ef8922f1125c948747490550a30a7d9.tar.xz
sboremove: don't check a ref if it's truthy, check the hash that's actually being used
Diffstat (limited to 'sboremove')
-rwxr-xr-xsboremove2
1 files changed, 1 insertions, 1 deletions
diff --git a/sboremove b/sboremove
index c04f1c8..8c7b724 100755
--- a/sboremove
+++ b/sboremove
@@ -116,7 +116,7 @@ sub confirm_remove {
# Check if packages in queue are actually installed on system
my @temp;
-if ($inst_names) {
+if (%inst_names) {
for my $sbo (@$remove_queue) {
push @temp, $sbo if $inst_names{$sbo};
}