summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/apt-why5
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";
}