aboutsummaryrefslogtreecommitdiff
path: root/scripts/auto-build
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/auto-build')
-rwxr-xr-xscripts/auto-build/create-latest-build-listing.py21
1 files changed, 20 insertions, 1 deletions
diff --git a/scripts/auto-build/create-latest-build-listing.py b/scripts/auto-build/create-latest-build-listing.py
index f7d97a88..e38d0baf 100755
--- a/scripts/auto-build/create-latest-build-listing.py
+++ b/scripts/auto-build/create-latest-build-listing.py
@@ -6,6 +6,7 @@ import re
import StringIO
+sourcetarballs = []
for root, dirs, files in os.walk('/var/www/auto-build/'):
dirs.sort()
if 'latest' in dirs:
@@ -24,5 +25,23 @@ for root, dirs, files in os.walk('/var/www/auto-build/'):
#print "removing ", commonbuildpath
os.remove(commonbuildpath)
os.symlink(buildtarball, commonbuildpath)
+ m2 = re.search('^Pd-extended_[01]\.[0-9][0-9].*-source.*tar.bz2$', name)
+ if m2:
+ sourcetarballs.append(os.path.join(root, m2.string))
-
+if len(sourcetarballs) > 0:
+ sourcetarball = sourcetarballs[-1]
+ linkname = re.sub('/20[01][0-9]-[01][0-9]-[0-9][0-9]/', '/latest/', sourcetarball)
+ debiantarball = re.sub('-source', '-source.debian', sourcetarball)
+ debianlinkname = re.sub('-source', '-source.debian', linkname)
+ try:
+ os.remove(linkname)
+ os.remove(debianlinkname)
+ except Exception as e:
+ print e
+ try:
+ os.symlink(sourcetarball, linkname)
+ os.symlink(debiantarball, debianlinkname)
+ foundsourcetarball = True
+ except Exception as e:
+ print e