diff options
author | Guillaume Rousse <guillomovitch@mageia.org> | 2012-03-14 19:05:27 +0000 |
---|---|---|
committer | Guillaume Rousse <guillomovitch@mageia.org> | 2012-03-14 19:05:27 +0000 |
commit | 1974eaf450acd47c512a165a964db8b7dbf72dd8 (patch) | |
tree | 6c4c0a5eaa51fff6ef0a3273bc3d84fa46b4aa17 /urpmi.bash-completion | |
parent | 0518519b07ed9cb929362374e46809a23e3b41d0 (diff) | |
download | urpmi-1974eaf450acd47c512a165a964db8b7dbf72dd8.tar urpmi-1974eaf450acd47c512a165a964db8b7dbf72dd8.tar.gz urpmi-1974eaf450acd47c512a165a964db8b7dbf72dd8.tar.bz2 urpmi-1974eaf450acd47c512a165a964db8b7dbf72dd8.tar.xz urpmi-1974eaf450acd47c512a165a964db8b7dbf72dd8.zip |
revert to using urpmq --list for producing packages list, as suggested by Richard Neill, but keep using grep for filtering result (#373)
Diffstat (limited to 'urpmi.bash-completion')
-rw-r--r-- | urpmi.bash-completion | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/urpmi.bash-completion b/urpmi.bash-completion index 4404e1e0..d3b04d34 100644 --- a/urpmi.bash-completion +++ b/urpmi.bash-completion @@ -29,10 +29,10 @@ _urpmi_aliases() _urpmi_packages() { - local options medias + local options + # find media selection options - options="active" for (( i=1; i < COMP_CWORD; i++ )); do case "${COMP_WORDS[i]}" in --@\(excludemedia|media\)) @@ -45,13 +45,7 @@ _urpmi_packages() esac done - # get active media list - _urpmi_get_medias $options - - for media in $medias; do - COMPREPLY+=( $( compgen -W \ - "$(grep ^$cur /var/lib/urpmi/names.$media 2>/dev/null)" ) ) - done + COMPREPLY=( $( compgen -W "$(urpmq $options --list | grep ^$cur )" -- ) ) } # urpmi completion |