From 22cc40557cebcd2b81010e9fc719d302648a6ec3 Mon Sep 17 00:00:00 2001 From: Zhang Qiang Date: Tue, 25 Jun 2013 11:46:52 +0800 Subject: [PATCH] fix lose efficacy issue of getting tmpdir if -c specfied Change-Id: I05670479ae4fef747a748c80c94e39c022a93a6f Signed-off-by: Zhang Qiang --- gitbuildsys/cmd_build.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gitbuildsys/cmd_build.py b/gitbuildsys/cmd_build.py index 5012a2e..221c34d 100644 --- a/gitbuildsys/cmd_build.py +++ b/gitbuildsys/cmd_build.py @@ -72,7 +72,7 @@ QEMU_CAN_BUILD = ['armv4l', 'armv5el', 'armv5l', 'armv6l', 'armv7l', ] USERID = pwd.getpwuid(os.getuid())[0] -TMPDIR = os.path.join(configmgr.get('tmpdir', 'general'), '%s-gbs' % USERID) +TMPDIR = None def prepare_repos_and_build_conf(args, arch, profile): '''generate repos and build conf options for depanneur''' @@ -203,6 +203,9 @@ def get_profile(args): def main(args): """gbs build entry point.""" + global TMPDIR + TMPDIR = os.path.join(configmgr.get('tmpdir', 'general'), '%s-gbs' % USERID) + if args.commit and args.include_all: raise Usage('--commit can\'t be specified together with '\ '--include-all') -- 2.34.1