mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
projects.py: Fix ignored --prefix option
--prefix was ignored because the default was set after the commandline options were evaluated. This commit fixes that. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
458fe33260
commit
d173f91eda
1 changed files with 4 additions and 3 deletions
|
|
@ -564,9 +564,6 @@ class Projects(object):
|
|||
run_make(m, target, cur_project, num_projects)
|
||||
|
||||
def run(args_):
|
||||
visited = {}
|
||||
glob_order = []
|
||||
self.projs_root = pwd.getpwuid(os.getuid()).pw_dir + "/local/src/jw.dev/proj"
|
||||
|
||||
# -- parse command line
|
||||
parser = argparse.ArgumentParser(description='janware software project build tool')
|
||||
|
|
@ -882,6 +879,9 @@ class Projects(object):
|
|||
if a[0] != '-':
|
||||
break
|
||||
|
||||
# -- defaults
|
||||
self.projs_root = pwd.getpwuid(os.getuid()).pw_dir + "/local/src/jw.dev/proj"
|
||||
|
||||
parser = argparse.ArgumentParser(description='Project metadata evaluation')
|
||||
parser.add_argument('-d', '--debug', action='store_true',
|
||||
default=False, help='Output debug information to stderr')
|
||||
|
|
@ -899,6 +899,7 @@ class Projects(object):
|
|||
self.debug("----------------------------------------- running ", ' '.join(sys.argv))
|
||||
|
||||
self.projs_root = args.prefix[0]
|
||||
self.debug("projs_root = ", self.projs_root)
|
||||
if len(args.topdir):
|
||||
self.topdir = args.topdir[0]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue