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:
parent
aa45595251
commit
b5e06b0ab9
2
CHANGES
2
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"
|
||||
|
@ -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
|
||||
;;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user