Browse Source

generate-git-snapshot: use dpkg-source's -I switch without any arguments

Depending on the dpkg-source version the tar ball includes the
.git directory even though 'i\.git' is specified, which isn't the
expected behaviour.

Quoting the dpkg-source manpage:

| -I  by itself adds default --exclude options that will filter out
| control files and directories of the most common revision control
| systems, backup and swap files and Libtool build output
| directories.

So instead of using this broken 'i\.git' option let's just use
-I option without any arguments and everything seems to be good. :)

Verified for dpkg-source versions:

* 1.14.31   (lenny)
* 1.15.8.13 (squeeze)
* 1.16.8    (wheezy)
* 1.16.9    (sid as of 2012-10-28)

for the jenkins-debian-glue repository itself, using the 3.0
native format as well as running it through 'dpkg-source
--format=1.0'.

Thanks: yanfalies for the bugreport
Closes: #20
merge-requests/109/head
Michael Prokop 10 years ago
parent
commit
f6a3ab9490
  1. 2
      scripts/generate-git-snapshot

2
scripts/generate-git-snapshot

@ -206,7 +206,7 @@ git checkout - # switch back to previous "branch" before removing the tmp branch
git branch -D "$random_branch"
# build source package
( cd .. ; dpkg-source -i\.git -b source )
( cd .. ; dpkg-source -I -b source )
# revert to original debian/changelog to avoid merge conflicts
git checkout -- debian/changelog

Loading…
Cancel
Save