summaryrefslogtreecommitdiffstats
path: root/pactest/pactest.py
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-03-05 19:06:12 +0100
committerAaron Griffin <aaron@archlinux.org>2007-03-05 19:06:12 +0100
commit2caadb33bf60167401f7dd316e704bc42e32a1a9 (patch)
treed7c349246b591073b91a5b6635503cfafda3bd52 /pactest/pactest.py
parent714a414e72591f3273583cb4970e1515c94e5887 (diff)
downloadpacman-2caadb33bf60167401f7dd316e704bc42e32a1a9.tar.gz
pacman-2caadb33bf60167401f7dd316e704bc42e32a1a9.tar.xz
* Fixed an issue with globbing the --test argument
* Added a custom 'mkdir' function which makes parents and doesn't fail on existence * Added output for 'SKIP' messages (it did not indicate WHY it was skipped) * Added the ability to generate DB packages in the sync dir (not the cache dir) for testing downloading. (self.cachepkgs = False) * Added pmtest.path for the full path to the package file
Diffstat (limited to 'pactest/pactest.py')
-rwxr-xr-xpactest/pactest.py3
1 files changed, 2 insertions, 1 deletions
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