[git-buildpackage] Would it be possible for pristine-tar to not be an absolute path?

Nish Aravamudan nish.aravamudan at canonical.com
Fri Jan 12 20:53:32 CET 2018


On 12.01.2018 [09:26:11 +0100], Guido Günther wrote:
> Hi,
> On Thu, Jan 11, 2018 at 02:57:03PM -0800, Nish Aravamudan wrote:
> > On Sun, Jan 7, 2018 at 11:09 AM, Guido Günther <agx at sigxcpu.org> wrote:
> > > Hi,
> > > On Fri, Jan 05, 2018 at 09:55:30PM -0800, Nish Aravamudan wrote:
> > >> Hi Guido,
> > >>
> > >> On Wed, Aug 30, 2017 at 12:47 PM, Guido Günther <agx at sigxcpu.org> wrote:
> > >>
> > >> <snip>
> > >>
> > >> >> To be clear, we only use gbp for orig tarball handling currently (we
> > >> >> import-orig the tarballs published for Debian & Ubuntu, and use
> > >> >> buildpackage (eventually export-orig, once it's available) to get the
> > >> >> tarballs back out).
> > >> >
> > >> > gbp export-orig is already in the versions in experimental. It will gain
> > >> > some more features in the near future (like checking out arbitrary
> > >> > versions without having a working copy).
> > >>
> > >> Have the parenthetical changes landed yet? Or does both
> > >> gbp-buildpackage (when using pristine-tar, or not) and gbp-export-orig
> > >> only extract tarballs for HEAD?
> > >
> > > gbp-buildpackge extracts tarballs for the version you're building (I
> > > think that's the only thing that makes sense). gbp export-orig should
> > > support exporting any version given a debian revision:
> > >
> > >     gbp export-orig 10.0.1-1
> > >
> > > We could assume '-1' if not given:
> > >
> > >     gbp export-orig 10.0.1
> > >
> > > I should be a simple as fetching the right DebianSource in main() but I
> > > did not get around to look into that.
> > 
> > I took a quick look at this and DebianSource refers to a GbpVFS
> > interface. Is that supposed to be GitVfs? So if a version is provided
> 
> That's just a typo in the constructor docs. Thanks for pointing this
> out. GitVfs is correct. 

Cool, that's what I figured, but wanted to make sure.
 
> > on the command-line, I would do a lookup from that to a Git tree,
> > which I can then instantiate the GitVfs object from?
> 
> You don't even need to lookup the tree. Just convert the given version
> to tag and then do:
> 
>     https://github.com/agx/git-buildpackage/blob/master/gbp/scripts/pq.py#L183

Ah nice, I should be able to figure it out now.

-Nish

-- 
Nishanth Aravamudan
Ubuntu Server
Canonical Ltd


More information about the git-buildpackage mailing list