On Thu, 2009-03-05 at 18:20 +1100, Ben Finney wrote:
> On 04-Mar-2009, Jelmer Vernooij wrote:
> > get-orig-source should also retrieve the most recent version of
> > upstream rather than the last on in debian/changelog, as policy
> > mentions.
> 
> How, then, should the version string (needed to construct the correct
> tarball filename) be determined from the upstream branch?
bzr-builddeb can do this for you, by taking the current version in
debian/changelog and updating the revno in that. What I usually use for
get-orig-source is something like this:

get-orig-source:
        bzr builddeb --export-only --build-dir=tmp
        mv tmp/*.orig.tar.gz .
        rm -rf tmp

This will retrieve the upstream branch name (lp:bzr-loom in this case)
from .bzr-builddeb/default.conf

Cheers,

Jelmer

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to