diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/apt-why | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/apt-why b/bin/apt-why index 171bba0..e6c5de6 100755 --- a/bin/apt-why +++ b/bin/apt-why @@ -50,6 +50,11 @@ sub recurse { recurse($_, $depth) foreach revdeps($name); } +unless ($cache->{$packagename}) { + print STDERR "No such package: $packagename\n"; + exit(1); +} + if ($cache->{$packagename}->{Flags} =~ /Essential/) { print "Essential: Yes\n"; } |