From 6f850f01b245c9e36e29f2fa7e25fd735289c578 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 11 Jul 2008 20:41:43 +0200 Subject: bin/apt-why: Fixed typo, updated documentation --- bin/apt-why | 28 +++++++--------------------- 1 file changed, 7 insertions(+), 21 deletions(-) (limited to 'bin') diff --git a/bin/apt-why b/bin/apt-why index b9df057..97af4b9 100755 --- a/bin/apt-why +++ b/bin/apt-why @@ -5,7 +5,7 @@ use AptPkg::Cache; use Switch; my $cache = AptPkg::Cache->new; -my $packagename = pop or dir("No packagename given"); +my $packagename = pop or die("No packagename given"); my $query = shift || ''; my $package = $cache->{$packagename}; @@ -110,15 +110,15 @@ __END__ =head1 NAME -apt-perl - reverse dependency displayer using AptPkg::Cache +apt-why - filtered reverse dependency displayer using AptPkg::Cache =head1 SYNOPSIS -B I I +B [ B ] I =head1 DESCRIPTION -B displays various informations based on a Is reverse +B displays various informations based on a Is reverse dependencies The output is prefixed by two charactes, the former representing the desired @@ -128,20 +128,6 @@ The states are Install, Iold, Iemove (deinstall), I

urge, Inpacked, halI configured, Ialf installed, Ionfigfiles installed. An empty field means not installed. -I may be one of: - -=over - -=item why - -Show dependencies that justify the installation of a package - -=item why-not - -Show dependencies that prohibit the installation of a package - -=item rdeps - -Show all reverse dependencies of a package - -=back +If B is specified, reverse dependencies prohibiting the install of +I are shown. Else, reverse dependencies justifying the install +of I are shown -- cgit v1.2.3