summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-06-20 12:06:43 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-06-20 12:06:43 +0200
commitfb2c445922ec8e1bdb43ffc8a6592eafad5dfc90 (patch)
treeaf05c849712bd9685cda04d5c5f6c1c3159c31dc
parent7d45ad0788a8ee72fc137b4722f223f673c693af (diff)
apt-why: Show whether a package is essential
-rwxr-xr-xbin/apt-why4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/apt-why b/bin/apt-why
index 893fd6f..69802bf 100755
--- a/bin/apt-why
+++ b/bin/apt-why
@@ -51,6 +51,10 @@ sub recurse {
recurse($_, $depth) foreach revdeps($name);
}
+if ($cache->{$packagename}->{Flags} =~ /Essential/) {
+ print "Essential: Yes\n";
+}
+
recurse($packagename, 0);
__END__