Skip to content

Commit

Permalink
Builder: Include source tarball in RSS/XML feeds
Browse files Browse the repository at this point in the history
In the XML feed, the source package uses the platform identifier
"source".
  • Loading branch information
skyjake committed Nov 10, 2013
1 parent e351b5a commit 0f3190d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions distrib/builder/event.py
Expand Up @@ -50,7 +50,8 @@ def __init__(self, build=None, latestAvailable=False):
('Mac OS X 10.6+ (x86_64/i386)', 'mac10_6.dmg', 'darwin-64bit'),
('Mac OS X 10.4+ (ppc/i386)', '32bit.dmg', 'darwin-32bit'),
('Ubuntu (x86_64)', 'amd64.deb', 'linux2-64bit'),
('Ubuntu (x86)', 'i386.deb', 'linux2-32bit')]
('Ubuntu (x86)', 'i386.deb', 'linux2-32bit'),
('Source', '.tar.gz', 'source')]

if self.has_version() and utils.version_cmp(self.version_base(), '1.11') >= 0:
del self.oses[3] # no more OS X 10.4
Expand All @@ -76,7 +77,8 @@ def __init__(self, build=None, latestAvailable=False):
'darwin-64bit': 'mac10_6-x86-x86_64',
'macx8-64bit': 'mac10_8-x86_64',
'linux2-32bit': 'linux-x86',
'linux2-64bit': 'linux-x86_64'}
'linux2-64bit': 'linux-x86_64',
'source': 'source'}

# Prepare compiler logs present in the build dir.
self.compress_logs()
Expand Down Expand Up @@ -161,7 +163,8 @@ def clean(self):
def list_package_files(self):
files = glob.glob(os.path.join(self.buildDir, '*.dmg')) + \
glob.glob(os.path.join(self.buildDir, '*.exe')) + \
glob.glob(os.path.join(self.buildDir, '*.deb'))
glob.glob(os.path.join(self.buildDir, '*.deb')) + \
glob.glob(os.path.join(self.buildDir, '*.tar.gz'))

return [os.path.basename(f) for f in files]

Expand Down Expand Up @@ -198,7 +201,7 @@ def text_summary(self):
if commitCount == 100: moreThan = 'more than '
msg += " contains %s%i commits and" % (moreThan, commitCount)

msg += " produced %i installable binary package%s." % \
msg += " produced %i package%s." % \
(pkgCount, 's' if (pkgCount != 1) else '')

return msg
Expand Down

0 comments on commit 0f3190d

Please sign in to comment.