Skip to content

Commit

Permalink
Builder|Ubuntu: Always update Debian changelog when making source pac…
Browse files Browse the repository at this point in the history
…kage
  • Loading branch information
skyjake committed Mar 17, 2016
1 parent 8780c75 commit c7b3d91
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions distrib/autobuild.py
Expand Up @@ -202,6 +202,7 @@ def update_debian_changelog():

def build_source_package():
"""Builds the source tarball and a Debian source package."""
update_debian_changelog()
git_pull()
ev = builder.Event(latestAvailable=True)
print "Creating source tarball for build %i." % ev.number()
Expand Down Expand Up @@ -235,15 +236,15 @@ def build_source_package():
os.rename(fn[:-7], pkgDir + '.orig')

origName = pkgName + '_%s' % ev.version_base() + '.orig.tar.gz'
print "Symlink to", origName
print "Symlink to", origName
system_command('ln %s %s' % (fn, origName))

print "Extracting", fn
system_command('tar xzf %s' % fn)
print "Renaming", fn[:-7], 'to', pkgDir
os.rename(fn[:-7], pkgDir)
os.chdir(pkgDir)
system_command('echo "" | dh_make -s -c gpl2 --file ../%s' % fn)
system_command('echo "" | dh_make --yes -s -c gpl2 --file ../%s' % fn)
os.chdir('debian')
for fn in os.listdir('.'):
if fn[-3:].lower() == '.ex': os.remove(fn)
Expand Down

0 comments on commit c7b3d91

Please sign in to comment.