pass specfile to gbp for archive tar ball
authorZhang Qiang <qiang.z.zhang@intel.com>
Wed, 13 Jun 2012 12:01:33 +0000 (20:01 +0800)
committerZhang Qiang <qiang.z.zhang@intel.com>
Wed, 13 Jun 2012 12:01:33 +0000 (20:01 +0800)
relative path for specfile is needed

gitbuildsys/cmd_remotebuild.py

index 65a72d7..5004317 100644 (file)
@@ -130,10 +130,12 @@ def do(opts, args):
     localpkg.remove_all()
 
     with utils.Workdir(workdir):
+        relative_spec = specfile.replace('%s/' % workdir, '')
         if gbp_build(["argv[0] placeholder", "--git-export-only",
                       "--git-ignore-new", "--git-builder=osc",
                       "--git-export-dir=%s" % oscworkdir,
-                      "--git-packaging-dir=packaging"]):
+                      "--git-packaging-dir=packaging",
+                      "--git-specfile=%s" % relative_spec]):
             msger.error("Failed to get packaging info from git tree")
 
     localpkg.update_local()