using the packaging directory for obs build files, #60
authorZhang Qiang <qiang.z.zhang@intel.com>
Thu, 28 Jun 2012 05:49:33 +0000 (13:49 +0800)
committerZhang Qiang <qiang.z.zhang@intel.com>
Thu, 28 Jun 2012 05:49:33 +0000 (13:49 +0800)
with this patch, developers can chdir to packaging/ to check the
remote build data, also osc can be used here.

gitbuildsys/cmd_remotebuild.py

index 75ada09..380da2b 100644 (file)
@@ -49,7 +49,6 @@ passx=%(passwdx)s
 APISERVER   = configmgr.get('build_server', 'remotebuild')
 USER        = configmgr.get('user', 'remotebuild')
 PASSWDX     = configmgr.get('passwdx', 'remotebuild')
-TMPDIR      = configmgr.get('tmpdir')
 
 def do(opts, args):
 
@@ -65,7 +64,7 @@ def do(opts, args):
 
     workdir = repo.path
 
-    tmpdir = '%s/%s' % (TMPDIR, USER)
+    tmpdir = os.path.join(workdir, 'packaging')
     if not os.path.exists(tmpdir):
         os.makedirs(tmpdir)