diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2012-10-30 01:35:27 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2012-10-30 01:35:27 +0000 |
commit | 73b8a6bd6a054ee594cf67c5dabbd9e7f450d33c (patch) | |
tree | 2abdecbdd6559a040f0efd61de6241e64cf7168d /scripts/auto-build | |
parent | b8934b17f1659d52871a8284e3e4d5baeccce2ca (diff) |
include source and debian tarballs in latest listing
svn path=/trunk/; revision=16492
Diffstat (limited to 'scripts/auto-build')
-rwxr-xr-x | scripts/auto-build/create-latest-build-listing.py | 21 |
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 |