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.
This commit is contained in:
David Paleino 2009-09-20 19:45:27 +02:00
parent aa45595251
commit b5e06b0ab9
2 changed files with 4 additions and 2 deletions

View File

@ -38,6 +38,8 @@ bash-completion (1.x)
* Fixed obvious brokenness (typos) in contrib/mdadm * Fixed obvious brokenness (typos) in contrib/mdadm
* Clean [1.2.3.4]:port format in known_hosts, thanks to * Clean [1.2.3.4]:port format in known_hosts, thanks to
Xuefer (Gentoo: #284563) 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): * Patches from PLD Linux (thanks to Elan Ruusamäe):
- avoid sed pipe as ps itself can omit the headers - avoid sed pipe as ps itself can omit the headers
- improve service(8) completion, also look for "msg_usage" - improve service(8) completion, also look for "msg_usage"

View File

@ -32,7 +32,7 @@ _apt_get()
return 0 return 0
;; ;;
*) *)
COMPREPLY=( $( apt-cache pkgnames $cur 2> /dev/null ) ) COMPREPLY=( $( apt-cache --no-generate pkgnames $cur 2> /dev/null ) )
return 0 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 return 0
;; ;;