Browse Source

Remove *_source.changes file generated by dpkg-buildpackage in *-source job [Closes: #67]

The recent commit to make sure quilt can't break the build (git
commit 63d6c47) made a switch from dpkg-source to
dpkg-buildpackage. dpkg-buildpackage generates a *_source.changes
file which isn't present when using dpkg-source. While this file
is nice it doesn't provide any real value for us, but what's more
important, it might break existing setups:

If all files are copied around from one Jenkins job to another
then in the final jenkins job the changes file from the binaries
job and the source.changes one end up together. If those are
passed to other tools then things might break (see github issue
67 as an example). So let's just remove the file after the
dpkg-buildpackage call to provide the used behaviour.
Michael Prokop 8 years ago
1 changed files with 4 additions and 0 deletions
  1. +4

+ 4
- 0
scripts/generate-git-snapshot View File

@@ -296,6 +296,10 @@ quilt_cleanup
# to get the actual requested version
dpkg-buildpackage -uc -us -nc -d -S -i -I --source-option=--unapply-patches

# get rid of the *_source.changes files generate by dpkg-buildpackage
# to avoid failures in a later stage when copying all files around
rm -f ../*_source.changes

# revert to original debian/changelog to avoid merge conflicts
git checkout -- $(readlink -f debian/changelog)