From: Zhang Qiang Date: Thu, 20 Jun 2013 15:58:18 +0000 (+0800) Subject: only set work dir as dirname of gbs conf if work dir is not '.' X-Git-Tag: 0.17~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5f405f3ef598fe9d030466ae1d942e7c9050f7fd;p=tools%2Fgbs.git only set work dir as dirname of gbs conf if work dir is not '.' If work_dir already set the correct path instead of '.', gbs should not reset it Change-Id: Iebae6b07ef2462adcffc21bc39b61c48fa42dbf4 --- diff --git a/gitbuildsys/conf.py b/gitbuildsys/conf.py index 077235a..cf5edcf 100644 --- a/gitbuildsys/conf.py +++ b/gitbuildsys/conf.py @@ -259,7 +259,8 @@ url = http://download.tizen.org/releases/daily/trunk/ivi/latest/ try: cfgparser.read_one(fpath) if cfgparser.has_section('general') and \ - cfgparser.has_option('general', 'work_dir'): + cfgparser.has_option('general', 'work_dir') and \ + cfgparser.get('general', 'work_dir') == '.': cfgparser.set('general', 'work_dir', os.path.abspath(os.path.dirname(fpath))) except Error, err: