From: Zhang Qiang Date: Fri, 28 Jun 2013 09:48:11 +0000 (+0800) Subject: bugfix: forget checking .gbs.conf under current dir X-Git-Tag: 0.17~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c11db81261c96f27b59cf644079fd3390b56c091;p=tools%2Fgbs.git bugfix: forget checking .gbs.conf under current dir Change-Id: I8342400bbc4506e1dc1c5c4e9bacf0307fb6a7de --- diff --git a/gitbuildsys/conf.py b/gitbuildsys/conf.py index 3c81578..7d219cb 100644 --- a/gitbuildsys/conf.py +++ b/gitbuildsys/conf.py @@ -287,12 +287,13 @@ url = http://download.tizen.org/releases/daily/trunk/ivi/latest/ """ cur_dir = os.path.abspath(start_dir) while True: - cur_dir = os.path.dirname(cur_dir) - if cur_dir == '/': - break if os.path.exists(os.path.join(cur_dir, '.repo')) and \ os.path.exists(os.path.join(cur_dir, '.gbs.conf')): return os.path.join(cur_dir, '.gbs.conf') + if cur_dir == '/': + break + cur_dir = os.path.dirname(cur_dir) + return None tizen_conf = lookfor_tizen_conf(os.getcwd())