diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-06-20 12:06:43 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-06-20 12:06:43 +0200 |
commit | fb2c445922ec8e1bdb43ffc8a6592eafad5dfc90 (patch) | |
tree | af05c849712bd9685cda04d5c5f6c1c3159c31dc | |
parent | 7d45ad0788a8ee72fc137b4722f223f673c693af (diff) |
apt-why: Show whether a package is essential
-rwxr-xr-x | bin/apt-why | 4 |
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__ |