From fd89008d53def130e38be7aea091c98f085ec1fb Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Fri, 6 Feb 2015 16:37:58 -0500 Subject: chk_arch_pkg.py: add cmd line to override dir name --- build_tools/bin/chk_arch_pkg.py | 5 +++++ 1 file changed, 5 insertions(+) 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() -- cgit v0.12