Bug 8534 - rpmi -i --force results in package duplication in some cases
Summary: rpmi -i --force results in package duplication in some cases
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: rpm (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-21 14:28 MSK by Mikhail Zabaluev
Modified: 2012-01-02 19:23 MSK (History)
8 users (show)

See Also:


Attachments
Output of rpmi -ivv --force --justdb pkg-config-0.20-alt2.pentium4.rpm (5.32 KB, text/plain)
2005-11-21 14:36 MSK, Mikhail Zabaluev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Zabaluev 2005-11-21 14:28:56 MSK
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!
Comment 1 Mikhail Zabaluev 2005-11-21 14:36:58 MSK
Created attachment 1260 [details]
Output of rpmi -ivv --force --justdb pkg-config-0.20-alt2.pentium4.rpm
Comment 2 Dmitry V. Levin 2005-11-21 20:57:40 MSK
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.
Comment 3 Mikhail Zabaluev 2005-11-22 00:10:05 MSK
4.0.4-alt53 it is.
Comment 4 Michael Shigorin 2009-08-15 14:23:07 MSD
(In reply to comment #0)
> The obvious workaround to it is: Don't do that!
I'd say WORKSFORME then.
Comment 5 Jeff Johnson 2012-01-02 19:23:48 MSK
tracked at https://bugs.launchpad.net/rpm/+bug/910871