From 73b8a6bd6a054ee594cf67c5dabbd9e7f450d33c Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 30 Oct 2012 01:35:27 +0000 Subject: include source and debian tarballs in latest listing svn path=/trunk/; revision=16492 --- scripts/auto-build/create-latest-build-listing.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'scripts/auto-build') 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 -- cgit v1.2.1