summaryrefslogtreecommitdiffstats
path: root/urpmi.bash-completion
diff options
context:
space:
mode:
Diffstat (limited to 'urpmi.bash-completion')
-rw-r--r--urpmi.bash-completion4
1 files changed, 3 insertions, 1 deletions
diff --git a/urpmi.bash-completion b/urpmi.bash-completion
index 41449699..47aa8d67 100644
--- a/urpmi.bash-completion
+++ b/urpmi.bash-completion
@@ -91,7 +91,9 @@ _urpmi()
COMPREPLY=( $( compgen -W "$options" -- $cur ) )
else
if [[ ${COMP_WORDS[0]} != *rurpmi ]]; then
- # return rpm files (can't list available packages anymore)
+ if [ -n "${COMP_URPMI_HDLISTS:-}" ]; then
+ COMPREPLY=( $( compgen -W "$(urpmq --list)" -- $cur ) )
+ fi
_filedir rpm
fi
fi