bugfix: forget checking .gbs.conf under current dir
authorZhang Qiang <qiang.z.zhang@intel.com>
Fri, 28 Jun 2013 09:48:11 +0000 (17:48 +0800)
committerZhang Qiang <qiang.z.zhang@intel.com>
Fri, 28 Jun 2013 09:57:54 +0000 (17:57 +0800)
Change-Id: I8342400bbc4506e1dc1c5c4e9bacf0307fb6a7de

gitbuildsys/conf.py

index 3c81578..7d219cb 100644 (file)
@@ -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())