diff options
author | Britney Fransen <brfransen@gmail.com> | 2015-02-06 21:37:58 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2015-02-06 21:37:58 (GMT) |
commit | fd89008d53def130e38be7aea091c98f085ec1fb (patch) | |
tree | 897f04763f86c2a8f6c8371b061d1ba27e2a59f8 /build_tools/bin | |
parent | fcad97d3c517e516cf8bdd0d0855e0f827e46512 (diff) | |
download | linhes_dev-fd89008d53def130e38be7aea091c98f085ec1fb.zip |
chk_arch_pkg.py: add cmd line to override dir name
Diffstat (limited to 'build_tools/bin')
-rwxr-xr-x | build_tools/bin/chk_arch_pkg.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/build_tools/bin/chk_arch_pkg.py b/build_tools/bin/chk_arch_pkg.py index 5d428db..b939f4f 100755 --- a/build_tools/bin/chk_arch_pkg.py +++ b/build_tools/bin/chk_arch_pkg.py @@ -172,6 +172,11 @@ def main(): if "--yes_all" in sys.argv or "-y" in sys.argv: yes_all = True + # use command line for currDirName + if len(sys.argv) > 1: + if not sys.argv[len(sys.argv) - 1].startswith('-'): + currDirName = sys.argv[len(sys.argv) - 1] + print "Searching for " + currDirName + " on archlinux.org..." archVer = getArchVer() getLHVer() |