Guido Günther wrote: > On Fri, Feb 29, 2008 at 11:10:47PM +0100, Julian Andres Klode wrote: >> git-buildpackage, when used with the pristine-tar option fails to generate >> an upstream >> tarball using pristine-tar if no local pristine-tar branch is available. >> >> pristine-tar however also checks remote branches. The easiest way would be >> to just call >> pristine-tar and exit if it fails, instead of depending on a local >> pristine-tar >> branch. > What do you mean by exit if it fails? Exit git-buildpackage? Can you > provide a test case? > -- Guido git-buildpackage exits if no pristine-tar branch is available. pristine-tar does work, because it looks for a branch containing pristine-tar and uses this one (if only one exists). Therefore I suggest to simply call pristine-tar and exit if pristine-tar exits with error.
See the following example: $ git clone -q git://git.debian.org/git/collab-maint/readahead-list.git $ cd readahead-list $ git-buildpackage --git-pristine-tar $ pristine-tar checkout ../readahead-list_1.20060421.1016.orig.tar.gz See the messages: [EMAIL PROTECTED]:~$ git clone -q git://git.debian.org/git/collab-maint/readahead-list.git remote: Generating pack... remote: Done counting 209 objects. remote: Deltifying 209 objects... remote: 100% (209/209) done remote: Total 209 (delta 111), reused 193 (delta 103) [EMAIL PROTECTED]:~$ cd readahead-list [EMAIL PROTECTED]:~/readahead-list$ git-buildpackage --git-pristine-tar dh_testdir rm -f build-stamp [ ! -f Makefile ] || /usr/bin/make clean distclean dh_clean dh_testdir Pristine-tar branch 'pristine-tar' not found [EMAIL PROTECTED]:~/readahead-list$ pristine-tar checkout \ ../readahead-list_1.20060421.1016.orig.tar.gz pristine-tar: successfully generated ../readahead-list_1.20060421.1016.orig.tar.gz -- Julian Andres Klode, Fellow of the Free Software Foundation Europe Ubuntu Member | Debian Maintainer | Developer try Ubuntu: http://www.ubuntu.com/ | my site: http://jak-linux.org/ mail: [EMAIL PROTECTED] | IRC: juliank languages: German | English
signature.asc
Description: OpenPGP digital signature