Hi Scott, Martin,

On 11/10/2011 01:01 AM, Martin Pool wrote:
I don't know the answer to this off hand.  Does someone else?  Maybe
we can add this to the help.l.n documentation?

Martin

---------- Forwarded message ----------
From: Scott Ritchie<scottritc...@ubuntu.com>
Date: 10 November 2011 06:05
Subject: Thanks for fixing recipes...and Launchpad Recipe help please
To: martin.p...@canonical.com


Hey Martin,

Thanks a ton for helping fix the daily build recipes bzr-out-of-memory
issue.  Now that my daily builds are building again, I'm hoping I can
bother you with a question...


How exactly do I use Git tags in a recipe?  It seems like there's
support for this, but I couldn't figure it out.

Currently my recipe looks like this:

# bzr-builder format 0.3 deb-version {debupstream}+daily-{date}
lp:wine
nest-part packaging lp:~scottritchie/wine/natty-packaging debian debian

The {debupstream} pulls the upstream version from that natty-packaging
branch I set up, but what I'd like it to use is the GIT tag from lp:wine
since I don't really have any reason to update this branch other than to
increment the version number.

1) Are git tags preserved at all in LP's BZR imports?
Yes, they're imported as regular Bazaar tags. Bazaar doesn't have annotated tags, so any annotated tags will simply be converted into regular tags. Tags that point at objects that are not commits (i.e. trees) are ignored.

2) If yes, what's the equivalent of {debupstream} that I can use to
access them?
Newer versions of bzr-builder have support for the {latest-tag} variable in deb-version, which gets replaced with the name of the most recent tag in the branch. See also https://bugs.launchpad.net/bzr-builder/+bug/608912

This version isn't deployed on Launchpad yet; we're working on deploying a new version at the moment.

In the mean time, you should be able to test your recipes (with {latest-tag}) with the "bzr-builder" package in oneiric and precise.

Cheers,

Jelmer

-- 
ubuntu-distributed-devel mailing list
ubuntu-distributed-devel@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-distributed-devel

Reply via email to