rpmi -i --force results in package duplication in some cases

Bug #910871 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RPM
New
Undecided
Unassigned
ALT Linux
Confirmed
Medium

Bug Description

There are duplicate registrations when rpm -i instead of -U is used.

Tags: install alt
Revision history for this message
In , Mhz-altlinux (mhz-altlinux) wrote :

The documentation states that --force is a shorthand for --replacefiles
--replacepkgs --oldpackage.

However, installing a package over the same, but different package(1) with
--force leads to duplicate package entries in the rpm database.

(1) I got this result when a package had the same name, version, release, and
epoch, but differed in other fields, such as Provides. Installing a package over
itself doesn't have this effect.

The obvious workaround to it is: Don't do that!

Revision history for this message
In , Mhz-altlinux (mhz-altlinux) wrote :

Created attachment 1260
Output of rpmi -ivv --force --justdb pkg-config-0.20-alt2.pentium4.rpm

Revision history for this message
In , Dmitry V. Levin (ldv) wrote :

Are you talking about rpm >= 4.0.4-alt53?
I'm unable to reproduce this behavior.

BTW, changes in rpm-4.0.4-alt53 make --force option less needed than before,
because -U and -F options now take build dates into account.

Revision history for this message
In , Mhz-altlinux (mhz-altlinux) wrote :

4.0.4-alt53 it is.

Revision history for this message
In , Tfa7 (tfa7) wrote :

(In reply to comment #0)
> The obvious workaround to it is: Don't do that!
I'd say WORKSFORME then.

Revision history for this message
In , Jeff Johnson (n3npq) wrote :
tags: added: alt install
Revision history for this message
In , Ruslandh (ruslandh) wrote :

Имхо давно пора закрыть.
Это уже не не бага, а багфича ;-)

Changed in altlinux:
importance: Unknown → Medium
status: Unknown → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.