yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #10481
[Branch ~yade-pkg/yade/git-trunk] Rev 3825: Implement binary-arch only builds for yadedaily.
------------------------------------------------------------
revno: 3825
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Tue 2014-02-18 14:14:09 +0100
message:
Implement binary-arch only builds for yadedaily.
modified:
scripts/ppa/buildppa.py
--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'scripts/ppa/buildppa.py'
--- scripts/ppa/buildppa.py 2014-01-10 20:03:14 +0000
+++ scripts/ppa/buildppa.py 2014-02-18 13:14:09 +0000
@@ -104,15 +104,20 @@
os.system('sed -i.bak -e s/VERSIONYADEREPLACE/%s/ %s/debian/rules'%(versiondebian,builddirdeb))
os.system('cd %s; dpkg-source -b -I build'%(builddirup))
os.mkdir(builddirres)
+
+ buildarch = ''
+ if (len(archs)>1 and a != archs[0]):
+ buildarch = '--binary-arch' #Build only arch-packages
+
print "Building package %s_%s"%(sourcePackName, versiondebian)
- buildPackage = ('sudo pbuilder --build --architecture %s --basetgz %s %s --logfile %s/pbuilder.log --debbuildopts "-j%d" --buildresult %s %s/*.dsc'%
- (a, tarball, addAllowuntrusted, builddirup, jobsNumber, builddirres, builddirup))
+ buildPackage = ('sudo pbuilder --build --architecture %s --basetgz %s %s --logfile %s/pbuilder.log --debbuildopts "-j%d" --buildresult %s %s %s/*.dsc'%
+ (a, tarball, addAllowuntrusted, builddirup, jobsNumber, builddirres, buildarch, builddirup))
print buildPackage
os.system(buildPackage)
os.system('sudo chown %s:%s %s * -R'%(userg, groupg, builddirup))
os.system('sudo chown %s:%s %s * -R'%(userg, groupg, gitdebdir))
os.system('sudo chown %s:%s %s * -R'%(userg, groupg, gitupsdir))
- os.system('cd %s ; su %s -c \'dput %s *.changes\''%(builddirres, userg, dputg))
+ os.system('cd %s ; su %s -c \'dput %s *.changes\''%(builddirres, userg, dputg))
for branch in repodeb.branches:
branchstr = str(branch)