On Sat, 2013-08-31 at 09:22 -0700, Russ Allbery wrote: > Mònica Ramírez Arceda <mon...@debian.org> writes: > > > I would like to use a customized cowbuilder image when running > > git-buildpackage. If I try to pass the location of this image to > > --git-pbuilder-options, git-buildpackage continues using base.cow > > instead of the file I want to use. > > > The command I use is the following, where mybase.cow is the image I want > > to use: > > > $ git-buildpackage --git-ignore-new --git-pbuilder > > --git-pbuilder-options='--basepath /var/cache/pbuilder/mybase.cow' > > git-pbuilder doesn't take options to change the basepath. Instead, it > uses environment variables. See the git-pbuilder man page for more > information, but the short version is that you want: > > env DIST=mybase git-buildpackage --git-ignore-new --git-pbuilder
This command is still not working for me :-( According to git-pbuilder man page, I must retitle mybase.cow to base-mybase.cow. When I retitle the image, git-pbuilder works using this command: $ env DIST=xmlstarlet git-pbuilder but if I run git-buildpackage with the command you recommended, it still continues using base.cow. I've taken a look to the source code and it seems that DIST env var is overwritten when using --git-pbuilder option [0]: if options.use_pbuilder or options.use_qemubuilder: ... os.environ['DIST'] = options.pbuilder_dist [0] http://sources.debian.net/src/git-buildpackage/0.6.3/gbp/scripts/buildpackage.py#L332 Thanks for your help, Mònica
signature.asc
Description: This is a digitally signed message part