On Fri, Nov 16, 2007 at 04:33:04PM +0100, Loïc Minier wrote:
>         Hi,
> 
>  I started uploading stuff to our ubuntu-mobile ppa (hildon-desktop) and
>  back then I thought using <hardy version> + "~um" + number was a good
>  idea (e.g. hildon-desktop 1:0.0.43-1ubuntu1 from hardy became
>  1:0.0.43-1ubuntu1~um1) for our gutsy ppa.  However now that I need to
>  upload to the ubuntu-mobile *hardy* ppa, I realize it's not ideal.
> 
>  I looked into what other projects were doing and one example for this
>  is backports.org where people append "~bpo" + Debian version (without
>  the dot); for example clamav 0.91-2 backported from Debian gives:
>     0.91.2-1~bpo31+1 | sarge-backports
>     0.91.2-1~bpo40+2 | etch-backports
> 
>  (3.1 is Debian sarge and 4.0 Debian etch)
> 
>  This keeps the version short in the case of Debian; in our case it's
>  one more digit, but I think that's ok.  So I suggest we start using:
> 
>     <original version> "~" <ppa> <target release version> "+" <revision>
> 
>  So package foo with version bar4ubuntu2 would have versions:
>     bar4ubuntu2~lool710+3       third upload to my gutsy ppa
>     bar4ubuntu2~lool804+1       first upload to my hardy ppa
>     bar4ubuntu2~um710+1         first upload to the ubuntu-mobile gutsy ppa

In order to ensure that they sort properly, I recommend ordering it slightly
differently, e.g.:

bar4ubuntu2~710lool3

or similar.  That way all 8.04 versions are greater than all 7.10 versions,
whereas in your example they are ordered based on the name of the PPA.

You could also use Ubuntu code names in place of version numbers if you
prefer (since they sort properly).

Ubuntu-backports uses a similar scheme.

-- 
 - mdz

-- 
Ubuntu-mobile mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile

Reply via email to