[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Use of ~ in package versions



On Sun, Jan 25, 2004 at 09:04:16AM +0100, Matthias Klose wrote:
> The ~ character can be used in package versions, so that x.y~pre1-1 <<
> x.y-1, but it's currently not used and lintian complains about
> it. nevertheless it seems to work. can this notation already be used
> for packages, which could be part of sarge?

When this was being added I believe it was agreed that we had to wait
until after sarge before using it. If you use it in sarge you'll break
upgrades from woody, since woody's dselect and apt will think the new
version numbers are syntax errors.

> what are the required versions of dpkg and apt to use this notation?

dpkg (1.10) unstable; urgency=low

  [...]
  * New version comparison routine that can handle arbitrarily large numbers
    and accepts `~' as a low-sorting character. Closes: Bug#93386
  [...]

 -- Wichert Akkerman <wakkerma@debian.org>  Fri, 21 Jun 2002 21:53:15 +0200

apt (0.5.11) unstable; urgency=low

  [...]
  * Patch from Koblinger Egmont <egmont@uhulinux.hu> to fix version
    comparisons with '~' (Closes: #205960)
  [...]

 -- Matt Zimmerman <mdz@debian.org>  Wed, 10 Sep 2003 19:41:28 -0400

apt (0.5.5) unstable; urgency=low

  * New deb version compare function, that has no integer limits, and
    supports pre-versions using ~.  Code ported from dpkg.
  [...]

 -- Adam Heath <doogie@debian.org>  Sun, 27 Apr 2003 01:23:12 -0500

Cheers,

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: