build: support for the new development/* branches
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 20 Mar 2014 08:16:59 +0000 (10:16 +0200)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 10 Apr 2014 12:04:46 +0000 (15:04 +0300)
The build now detects the package maintenance model (separate packaging
and devel branches or the old single packaging branch).

Change-Id: I2e2d22a7582e1c9e70182eea6ce2c3f1f6b97ad5
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gitbuildsys/cmd_build.py

index 60ba061fec5267cf3c2fd1ed7ec33b6218cc7d89..0d776264c7d8816ce0deaa92fca59c63f975f4ef 100644 (file)
@@ -358,6 +358,11 @@ def main(args):
     if args.spec:
         cmd += ['--spec=%s' % args.spec]
 
+    # Determine if we're on devel branch
+    orphan_packaging = configmgr.get('packaging_branch', 'orphan-devel')
+    if orphan_packaging:
+        cmd += ['--spec-commit=%s' % orphan_packaging]
+
     log.debug("running command: %s" % ' '.join(cmd))
     retcode = os.system(' '.join(cmd))
     if retcode != 0: