[yum-commits] completion-helper.py
zpavlas at osuosl.org
zpavlas at osuosl.org
Fri Apr 5 13:41:21 UTC 2013
completion-helper.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 22fae3f9b0059ed93e808c19b7c0e8f11cbbf446
Author: Zdenek Pavlas <zpavlas at redhat.com>
Date: Fri Apr 5 15:40:56 2013 +0200
completion helper: fix the "whitespace only" case. BZ 947827
diff --git a/completion-helper.py b/completion-helper.py
index 999b9ad..1102fd6 100755
--- a/completion-helper.py
+++ b/completion-helper.py
@@ -68,9 +68,9 @@ class RepoListCompletionCommand(yumcommands.RepoListCommand):
def get_pattern(extcmds):
- if len(extcmds) > 1 and extcmds[-1]:
+ if len(extcmds) > 1:
try: return shlex.split(extcmds[-1])[0] + "*"
- except ValueError: pass
+ except (ValueError, IndexError): pass
return "*"
def main(args):
More information about the Yum-commits
mailing list