[git-buildpackage] Tracking remote pristine-tar on salsa
Agustin Henze
tin at debian.org
Tue Aug 21 09:46:06 CEST 2018
Hi Guido,
On 8/11/18 8:04 AM, Guido Günther wrote:
[...]
>>
>> I've tested that commit with some tweaks to make it work (fetch_remote is
>> undefined and config.py is not populated) and it does the work as expected.
>> Thanks! :).
>
> Oh, you need to pull the full branch to make it work. Sorry, I should
> have said that.
>
Yeah, np. I could have pulled the repository, that probably could have been a
good idea hehe.
[...]
>> I've tried without the options `--git-pristine-tar` and
>> `--git-pristine-tar-commit` and it creates the orig from pristine-tar branch
>> before launch the building. So, I'm a little bit confuse here why are you
>> suggesting this.
>
> The --git-pristine-tar-commit is for the case when a project does not
> use pristine-tar.
>
Ah ok, still not getting your point, sorry... I've tried here with two
repositories one with pristine-tar[0] and the other without it[1]. Both cases
worked well or at least as I expected. The first one used the pristine-tar
branch to build the orig.tarball and the second one used the upstream branch.
[0] https://salsa.debian.org/debian/lm4tools/-/jobs/40605
$ gbp pull --ignore-branch --pristine-tar --track-missing
gbp:info: Fetching from default remote for each branch
gbp:info: Found detached head at '7ab08a9455da6e47798ffe3de841f124103c01d4'
gbp:info: Branch 'upstream' is already up to date.
gbp:info: Branch 'pristine-tar' is already up to date.
gbp:info: Branch 'master' is already up to date.
$ gbp buildpackage --git-ignore-branch --git-export-dir=${WORKING_DIR}
--git-builder='docker-build.sh
registry.salsa.debian.org/salsa-ci-team/images/dockerbuilder'
gbp:info: Creating /builds/debian/lm4tools/debian/output/lm4tools_0.1.3.orig.tar.gz
gbp:info: Exporting 'HEAD' to '/builds/debian/lm4tools/debian/output/lm4tools-tmp'
[1] https://salsa.debian.org/debian/crrcsim/-/jobs/40659
$ gbp pull --ignore-branch --pristine-tar --track-missing
gbp:info: Fetching from default remote for each branch
gbp:info: Found detached head at '83bddfd3ea9962382112234c6e5bf465b0024ad0'
gbp:info: Branch 'master' is already up to date.
gbp:info: Branch 'upstream' is already up to date.
$ gbp buildpackage --git-ignore-branch --git-export-dir=${WORKING_DIR}
--git-builder='docker-build.sh
registry.salsa.debian.org/salsa-ci-team/images/dockerbuilder'
gbp:info: Creating crrcsim_0.9.13.orig.tar.gz from 'upstream/0.9.13'
[...]
> Main problem is getting around to it atm. I have some basics done and
> hope to have s.th. testable next week, if not I'll put things somewhere
> so you can look into finishing it if you like.
>
Ok, just let us know if we can help. BTW, as you can see above we tried the
last version (0.9.10) and it worked perfectly. Thanks!
Cheers,
--
TiN
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.sigxcpu.org/pipermail/git-buildpackage/attachments/20180821/36757758/attachment.sig>
More information about the git-buildpackage
mailing list