On Tue, Sep 08, 2009 at 05:24:26PM +0200, Javier Barroso <[email protected]> was heard to say: > Daniel Burrows wrote: > > On Tue, Sep 08, 2009 at 10:04:29AM +0200, Javier Barroso > > <[email protected]> was heard to say: > > > >> Downgrade the following packages: > >> libavcodec52 [4:0.5.svn20090330-0.0 (now) -> 4:0.5+svn20090706-2 > >> (unstable)] > >> libavdevice52 [4:0.5.svn20090330-0.0 (now) -> 4:0.5+svn20090706-2 > >> (unstable)] > >> libavfilter0 [4:0.5.svn20090330-0.0 (now) -> 4:0.5+svn20090706-2 > >> (unstable)] > >> libavformat52 [4:0.5.svn20090330-0.0 (now) -> 4:0.5+svn20090706-2 > >> (unstable)] > >> mplayer [1:1.0.rc2svn20090316-0.1 (now) -> 1.0~rc3+svn20090405-1 > >> (unstable)] > >> > >> aptitude says downgrading from 1:1.0.rc2svn20090316-0.1 to > >> 1.0~rc3+svn20090405-1, but this is a upgrade > >> > > > > No, it's a downgrade. 1.0.rc2 is greater than 1.0~rc3 (note the "~"). > > Similarly, 0.5.svn is greater than 0.5+svn. You can use > > dpkg --compare-versions to check this: > > > > $ dpkg --compare-versions 4:0.5.svn20090330-0.0 gt 4:0.5+svn20090706-2 && > > echo true || echo false > > true > > $ dpkg --compare-versions 1:1.0.rc2svn20090316-0.1 gt 1.0~rc3+svn20090405-1 > > && echo true || echo false > > true > > > Sorry for the noise. > > This maybe a mplayer packaging fail. > > I get confused because dates (20090330 < 20090706), but I guess this is > a not standard in debian versioning system
You're right about the date order. But the comparison goes left-to-right, and it stops before the program ever looks at the dates. For instance, "." is considered larger than "+", so "0.5.X" is greater than "0.5+Y", just like "0.6.X" is larger than "0.5.Y" regardless of what X and Y are. The exact rules for version comparison can be found here: http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version Daniel -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

