Bug 49332 - rpm incorrectly compares versions
Summary: rpm incorrectly compares versions
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 7.1
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-07-18 03:49 UTC by Jim Radford
Modified: 2007-04-18 16:34 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-07-21 16:56:24 UTC
Embargoed:


Attachments (Terms of Use)

Description Jim Radford 2001-07-18 03:49:18 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)

Description of problem:
rpm doesn't think 4.0.0pre10 is greater than 3.1.17-14.


How reproducible:
Always

Steps to Reproduce:
$ rpm -q autofs
autofs-3.1.7-14
$ rpm -U --test autofs-4.0.0pre10-1.i386.rpm
package autofs-3.1.7-14 (which is newer than autofs-4.0.0pre10-1) is 
already installed


Additional info:

You can get get a copy of my autofs rpm in case you want to try it 
yourself at:

http://robotics.caltech.edu/~radford/autofs-4.0.0pre10-1.i386.rpm
http://robotics.caltech.edu/~radford/autofs-4.0.0pre10-1.src.rpm

NOTE that long after the bug has been reported --test still runs
scripts.  Make you nervous?  Me too!

Comment 1 Michael Schwendt 2001-07-21 16:56:19 UTC
$ rpm -q --qf "%{SERIAL}\n" autofs
1
$ rpm -qp --qf "%{SERIAL}\n" autofs-4.0.0pre10-1.i386.rpm
(none)

Not a bug, and will be reported many more times most likely. :)

Comment 2 Jeff Johnson 2001-07-21 19:26:48 UTC
Check for an epoch in the autofs-3.1.17-14 package:

rpm -q --qf '%{name}-%{version}-%{release} has epoch %{epoch}' autofs-3.1.17-14.

If that has an epoch, then you need to add an epoch tp the autofs-4.0.0.pre10
package.


Note You need to log in before you can comment on or make changes to this bug.