Use abspath for build.conf.
authorHuang Hao <hao.h.huang@intel.com>
Thu, 20 Sep 2012 08:20:33 +0000 (16:20 +0800)
committerHuang Hao <hao.h.huang@intel.com>
Thu, 20 Sep 2012 09:16:55 +0000 (17:16 +0800)
Change-Id: Ia739ff531f8a32906ac3f4913fd753960d77ec84

gitbuildsys/cmd_build.py

index ac69659..a403b17 100644 (file)
@@ -114,6 +114,10 @@ def prepare_repos_and_build_conf(opts, arch):
     if distconf is None:
         msger.error('No build config file specified, please specify in '\
                     '~/.gbs.conf or command line using -D')
+
+    # must use abspath here, because build command will also use this path
+    distconf = os.path.abspath(distconf)
+
     target_conf = os.path.basename(distconf).replace('-', '')
     os.rename(distconf, os.path.join(os.path.dirname(distconf), target_conf))
     dist = target_conf.rsplit('.', 1)[0]