index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | pactest/pactest.py | 3 |
diff --git a/pactest/pactest.py b/pactest/pactest.py index 77ce0af3..d2a09196 100755 --- a/pactest/pactest.py +++ b/pactest/pactest.py @@ -36,7 +36,8 @@ def globTests(option, opt_str, value, parser): globlist = [] # maintain the idx so we can modify rargs - while not parser.rargs[idx].startswith('-'): + while idx < len(parser.rargs) and \ + not parser.rargs[idx].startswith('-'): globlist += glob.glob(parser.rargs[idx]) idx += 1 |