Skip to content

Commit

Permalink
Builder|Ubuntu: Upload both Xenial and Yakkety packages to Launchpad
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
skyjake committed Oct 19, 2016
1 parent bada2ba commit 64a3b14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions distrib/autobuild.py
Expand Up @@ -208,8 +208,8 @@ def build_source_package():
print "Creating source tarball for build %i." % ev.number()

# Check distribution.
#system_command("lsb_release -a | perl -n -e 'm/Codename:\s(.+)/ && print $1' > /tmp/distroname")
#distros = [file('/tmp/distroname', 'rt').read()]
system_command("lsb_release -a | perl -n -e 'm/Codename:\s(.+)/ && print $1' > /tmp/distroname")
hostDistro = file('/tmp/distroname', 'rt').read()
distros = ['xenial', 'yakkety']

for distro in distros:
Expand Down Expand Up @@ -261,8 +261,8 @@ def gen_changelog(src, dst, extraSub=''):

# Figure out the name of the distribution.
dsub = ''
if distro:
dsub = 's/) precise;/) %s;/' % distro
if distro != hostDistro:
dsub = 's/) %s;/) %s;/' % (hostDistro, distro)
if pkgName != 'doomsday':
if dsub: dsub += ';'
dsub += 's/^doomsday /%s /' % pkgName
Expand Down

0 comments on commit 64a3b14

Please sign in to comment.