You are not logged in.

#1 2006-05-19 07:56:05

uggwar
Member
From: Oslo, Norway
Registered: 2005-01-13
Posts: 9

amarok 1.4.0a version number is less than 1.4.0

When updating my dear arch laptop today, pacman said that the installed version of amarok (1.4.0) was newer than the available one (1.4.0a).

Offline

#2 2006-05-19 08:59:00

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: amarok 1.4.0a version number is less than 1.4.0

It should have been made a forced 'downgrade'.

Offline

#3 2006-05-19 15:43:01

m123
Member
Registered: 2006-03-16
Posts: 29

Re: amarok 1.4.0a version number is less than 1.4.0

By the way, what is the order followed by Pacman for versions?

Consider:

1.4.0
1.4.0a
1.4.0_a
1.4.0rc1
1.4.0_rc1

Which is first, second, third, fourth and fifth?

Offline

#4 2006-05-22 21:40:00

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: amarok 1.4.0a version number is less than 1.4.0

pacman use (or follow the order of) vercmp.
$ vercmp <num1> <num2>
returns 1 if <num1>  is greater than <num2>. Otherwise, it returns a negative number.

Offline

#5 2006-05-22 22:13:32

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: amarok 1.4.0a version number is less than 1.4.0

Michel F wrote:

By the way, what is the order followed by Pacman for versions?

Consider:

1.4.0
1.4.0a
1.4.0_a
1.4.0rc1
1.4.0_rc1

Which is first, second, third, fourth and fifth?

The biggest thing to remember is that nondigits are always less than digits. And when two nondigits are compared their ascii values are used. As Snowman pointed out vercmp (modified for pkgrel support from RPMvercmp) is what pacman uses to compare versions. Just make sure if you decided to play around with it that you double quotes around the versions so bash interrupts it correctly otherwise you'll get false reading and number files laying around in the directory you are in.

Offline

Board footer

Powered by FluxBB