From 9830369967fa3d26aaae49c5f92e120f0883ab4e Mon Sep 17 00:00:00 2001 From: Michael Hanson Date: Mon, 30 Jul 2012 19:19:19 -0700 Subject: mp.py: Fix the honoring of --pkg variable. Update to ver 0.7.4 --- build_tools/bin/mp.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 -- cgit v0.12