Package: apt-file
Version: 2.0.3-7
Severity: wishlist
Tags: patch

Please? For the sweet sweet love of god have mercy! :/

--- /usr/bin/apt-file.old       2005-08-01 14:27:35.000000000 +1000
+++ /usr/bin/apt-file   2005-08-01 14:28:45.000000000 +1000
@@ -281,6 +281,7 @@
 Action:
     update                     Fetch Contents files from apt-sources.
     search     <pattern>       Search files in packages
+    find       <pattern>       Synonym for search <pattern>
     list       <pattern>       List files in packages
     purge                      Remove cache files
 EOF
@@ -342,11 +343,12 @@
     my $actions = {
        update => \&fetch_files,
        search => \&grep_file,
+       find => \&grep_file,
        list => \&grep_package,
        purge => \&purge_cache,
     };
 
-    $Conf->{help}=2 if $Conf->{action} =~ m/search|list/ &&
+    $Conf->{help}=2 if $Conf->{action} =~ m/find|search|list/ &&
        ! defined $Conf->{pattern};
     $Conf->{help}=2 if ! defined $actions->{$Conf->{action}} &&
        ! defined $Conf->{help};


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.11-mm3
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)

Versions of packages apt-file depends on:
ii  gzip                          1.3.5-10   The GNU compression utility
ii  libapt-pkg-perl               0.1.13     Perl interface to libapt-pkg
ii  libconfigfile-perl            1.2.1      Parses simple configuration files
ii  perl                          5.8.4-8    Larry Wall's Practical Extraction 

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to