← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-pkg/yade/git-trunk] Rev 3785: Minor update of PPA scripts.

 

------------------------------------------------------------
revno: 3785
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Sat 2013-12-21 08:25:49 +0100
message:
  Minor update of PPA scripts.
modified:
  scripts/ppa/.mini-dinstall.conf
  scripts/ppa/createtar.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/.mini-dinstall.conf'
--- scripts/ppa/.mini-dinstall.conf	2013-12-20 15:10:54 +0000
+++ scripts/ppa/.mini-dinstall.conf	2013-12-21 07:25:49 +0000
@@ -17,3 +17,5 @@
 [precise]
 
 [saucy]
+
+[trusty]

=== modified file 'scripts/ppa/createtar.py'
--- scripts/ppa/createtar.py	2013-12-20 15:10:54 +0000
+++ scripts/ppa/createtar.py	2013-12-21 07:25:49 +0000
@@ -86,7 +86,8 @@
             builddirup="%s_%s/"%(branchstr, a)
             builddirdeb="%s/build/"%(builddirup)
             builddirres="%s/result/"%(builddirup)
-            shutil.rmtree(builddirdeb,ignore_errors=True)
+            #shutil.rmtree(builddirdeb,ignore_errors=True)
+            shutil.rmtree(builddirup,ignore_errors=True)
             shutil.copytree(gitupsdir, builddirdeb )
             shutil.rmtree(builddirdeb+".git")
             # Get package version
@@ -111,6 +112,9 @@
             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))
-            time.sleep(5.0)
-            os.system('rm %s/%s/Release.gpg ; su %s -c \'gpg --no-tty --batch --default-key "%s" --detach-sign --passphrase-fd=0 --passphrase-file=%s -o %s/%s/Release.gpg %s/%s/Release\''%(patharchive, branch, userg, keyg, keypasspath, patharchive, branch, patharchive, branch))
+        os.system('cd %s ; su %s -c \'dput %s *.changes\''%(builddirres, userg, dputg))
+
+for branch in repodeb.branches:
+    branchstr = str(branch)
+    if (branchstr<>'master'):
+        os.system('rm %s/%s/Release.gpg ; su %s -c \'gpg --no-tty --batch --default-key "%s" --detach-sign --passphrase-fd=0 --passphrase-file=%s -o %s/%s/Release.gpg %s/%s/Release\''%(patharchive, branch, userg, keyg, keypasspath, patharchive, branch, patharchive, branch))