[Bash-completion-commits] [SCM] bash-completion branch, master, updated. b5e06b0ab951df2c0c072c0e410d9959ea328c89

David Paleino d.paleino at gmail.com
Sun Sep 20 17:47:54 UTC 2009


The following commit has been merged in the master branch:
commit b5e06b0ab951df2c0c072c0e410d9959ea328c89
Author: David Paleino <d.paleino at gmail.com>
Date:   Sun Sep 20 19:45:27 2009 +0200

    Added --no-generate to "apt-cache pkgnames" calls (Debian: #547550)
    
      From apt-cache(1):
    
           -g, --generate
               Perform automatic package cache regeneration, rather than use the
               cache as it is. This is the default; to turn it off, use
               --no-generate. Configuration Item: APT::Cache::Generate.
    
      Should make calls to apt-cache faster.

diff --git a/CHANGES b/CHANGES
index b1722bf..1f34ce3 100644
--- a/CHANGES
+++ b/CHANGES
@@ -38,6 +38,8 @@ bash-completion (1.x)
   * Fixed obvious brokenness (typos) in contrib/mdadm
   * Clean [1.2.3.4]:port format in known_hosts, thanks to
     Xuefer (Gentoo: #284563)
+  * Added --no-generate to "apt-cache pkgnames" calls, make it faster
+    on certain configurations (Debian: #547550)
   * Patches from PLD Linux (thanks to Elan Ruusamäe):
     - avoid sed pipe as ps itself can omit the headers
     - improve service(8) completion, also look for "msg_usage"
diff --git a/contrib/apt b/contrib/apt
index 366e5af..b816a6d 100644
--- a/contrib/apt
+++ b/contrib/apt
@@ -32,7 +32,7 @@ _apt_get()
 			return 0
 			;;
 		*)
-			COMPREPLY=( $( apt-cache pkgnames $cur 2> /dev/null ) )
+			COMPREPLY=( $( apt-cache --no-generate pkgnames $cur 2> /dev/null ) )
 			return 0
 			;;
 
@@ -118,7 +118,7 @@ _apt_cache()
 			;;
 
  		*)
-		    COMPREPLY=( $( apt-cache pkgnames $cur 2> /dev/null ) )
+		    COMPREPLY=( $( apt-cache --no-generate pkgnames $cur 2> /dev/null ) )
 		    return 0
 		    ;;
 

-- 
bash-completion



More information about the Bash-completion-commits mailing list