Daily builds for PPA. Versions problem

Andrew Starr-Bochicchio a.starr.b at gmail.com
Sun Jul 14 16:28:42 UTC 2013


On Sun, Jul 14, 2013 at 12:17 PM, Anton Balashov <sicness at darklogic.ru> wrote:
> I'm trying to make automatic daily builds if there is new commits in git.
> So, many commits have version 1.1.1 and I should to have many debs
> with different orig.tar.gz
> I want to have some like pkg-1.1.1-<date>ppa1
> But when I'm trying to upload new version, I get an error:
> pkg-1.1.1.orig.tar.gz was changes. And it's true.
> I can put some part of commit hash in version (1.1.1~hash-date..) but
> it's breaks order.

The tilda (~) character has a special meaning in version numbers. For example:

$ dpkg --compare-versions 1.0.3-1 le 1.0.3-1~ppa1 || echo "False"
False

So, either use 1.1.1+whatever or 1.1.2~whatever to indicate that these
are changes on top of 1.1.1 on the way to a 1.1.2 release.

A git hash doesn't increasingly increment, so just put the date first,
i.e.  1.1.1+20130714-a4bf5025f3

-- Andrew Starr-Bochicchio

   Ubuntu Developer <https://launchpad.net/~andrewsomething>
   Debian Developer <http://qa.debian.org/developer.php?login=asb>
   PGP/GPG Key ID: D53FDCB1



More information about the Ubuntu-motu mailing list