diff options
author | Michael Hanson <mihanson@linhes.org> | 2012-07-31 02:19:19 (GMT) |
---|---|---|
committer | Michael Hanson <mihanson@linhes.org> | 2012-07-31 02:19:19 (GMT) |
commit | 9830369967fa3d26aaae49c5f92e120f0883ab4e (patch) | |
tree | 14a47866cfd97570a36b3933f3014a12de98b9e1 /build_tools | |
parent | 3930cb05d2f26bb3af98591f171c79143c901b65 (diff) | |
download | linhes_dev-9830369967fa3d26aaae49c5f92e120f0883ab4e.zip |
mp.py: Fix the honoring of --pkg variable. Update to ver 0.7.4
Diffstat (limited to 'build_tools')
-rwxr-xr-x | build_tools/bin/mp.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/build_tools/bin/mp.py b/build_tools/bin/mp.py index dfdec94..8062f5c 100755 --- a/build_tools/bin/mp.py +++ b/build_tools/bin/mp.py @@ -1,5 +1,5 @@ #!/usr/bin/env python2 -# Version 0.7.3 +# Version 0.7.4 import os import sys @@ -26,6 +26,7 @@ SFIX = "" DOCROOT = "" pkgfile = "none" pkgbase = "" +pkglist = "" pkgname = "" pkgver = "" pkgrel = "" @@ -132,6 +133,7 @@ def commandline(): cli_dict['--'+o] = cmd1 elif cmd1 is not None: cli_dict['-'+o] = cmd1 + print "CLI Dictionary is:",cli_dict for o in options2: cmd2 = eval('options.'+o) if cmd2 is True: @@ -227,6 +229,14 @@ def update_repo(): print "INFO: Changed working dir to",DOCROOT print + # Check for --pkg in makepkg command and adjust pkglist accordingly + if not "--pkg" in cli_dict.keys(): + global pkglist + else: + v = cli_dict["--pkg"] + pkglist = v.split() + print "Package list:",pkglist + for i in pkglist: print "Package name:",i |