rorysenpai / apt-cyg

Automatically exported from code.google.com/p/apt-cyg
MIT License
0 stars 0 forks source link

add apt-cyg search as option to more closely mirror apt-cache search #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Here is a patch to allow users to apt-cyg search <packagename>, (in addition to 
apt-cyg find <packagename>). This more closely mirrors apt-cache search 
<packagename>.

What version of the product are you using? On what operating system?

apt-cyg version 0.57
Written by Stephen Jungels

Copyright (c) 2005-9 Stephen Jungels.  Released under the GPL.

Please provide any additional information below.

--- /tmp/apt-cyg        2010-04-27 13:55:43.315784000 -0500
+++ /bin/apt-cyg        2011-08-25 09:58:25.351912900 -0500
@@ -39,6 +39,7 @@
   echo "  \"apt-cyg update\" to update setup.ini"
   echo "  \"apt-cyg show\" to show installed packages"
   echo "  \"apt-cyg find <patterns>\" to find packages matching patterns"
+  echo "  \"apt-cyg search <patterns>\" to find packages matching patterns"
   echo "  \"apt-cyg describe <patterns>\" to describe packages matching patterns"
   echo "  \"apt-cyg packageof <commands or files>\" to locate parent packages"
   echo "Options:"
@@ -181,7 +182,7 @@
       shift
     ;;

-    update|show|find|describe|packageof|install|remove)
+    update|show|search|find|describe|packageof|install|remove)
       if test "-$command-" = "--"
       then
         command=$1
@@ -232,7 +233,7 @@
   ;;

-  find)
+  find|search)

     checkpackages
     findworkspace

Original issue reported on code.google.com by tan...@gmail.com on 25 Aug 2011 at 8:35

GoogleCodeExporter commented 8 years ago

Original comment by i...@skl.me on 19 Feb 2014 at 8:47