[PATCH] completion-helper: No pkg list when len(prefix) < 1. BZ 1040033

Zdenek Pavlas zpavlas at redhat.com
Tue Dec 10 15:24:34 UTC 2013


---
 etc/yum.bash | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/etc/yum.bash b/etc/yum.bash
index 40541af..aae8992 100644
--- a/etc/yum.bash
+++ b/etc/yum.bash
@@ -19,6 +19,8 @@ _yum_list()
 {
     # Fail fast for things that look like paths or options.
     [[ $2 == */* || $2 == [.~-]* ]] && return
+    # Listing all packages takes way too long
+    [[ ${#2} -lt 1 ]] && return
     _yum_helper list "$@"
 }
 
-- 
1.7.11.7



More information about the Yum-devel mailing list