diff options
Diffstat (limited to 'build_tools/bin')
-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 |