Bug 147972 - Freshen fails when there's two architectures of files being freshened
Summary: Freshen fails when there's two architectures of files being freshened
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm   
(Show other bugs)
Version: rawhide
Hardware: All Linux
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: Mike McLean
Depends On:
TreeView+ depends on / blocked
Reported: 2005-02-14 12:08 UTC by Kaj J. Niemi
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-02-14 16:35:25 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Kaj J. Niemi 2005-02-14 12:08:31 UTC
Description of problem:
% rpm -Fvh *.rpm
warning: package glibc = 2.3.4-10 was already added, skipping glibc < 2.3.4-10
error: error reading from file glibc-2.3.4-10.i686.rpm

Works (no i386.rpm in the list):
rpm -Fvh glibc-2.3.4-10.i686.rpm glibc-common-2.3.4-10.i386.rpm
glibc-devel-2.3.4-10.i386.rpm glibc-headers-2.3.4-10.i386.rpm
glibc-profile-2.3.4-10.i386.rpm glibc-utils-2.3.4-10.i386.rpm
nptl-devel-2.3.4-10.i686.rpm nscd-2.3.4-10.i386.rpm

Version-Release number of selected component (if applicable):

How reproducible:
Looks like always

Steps to Reproduce:
1. make sure there's a few files that need to be refreshened with different
architectures (say, i386, i686)
2. rpm -Fvh *.rpm
Actual results:

Expected results:
Shouldn't fail, this has worked since a long time :)

Comment 1 Jeff Johnson 2005-02-14 16:35:25 UTC
Heh, "worked since a long time" is not at all the
same thing as correct. Several flaws have been fixed
in rpm-4.4.1 to exclude user/application errors seloecting
packages, choosing the latest package of the same name and arch in

--freshen is a very differnt problem case, and is broken in
several ways (i.e. epoch is not looked at, multilib choices
are not attempted, +/-NPTL wrto glibc not attempted).

I'd suggest using more specific input to rpm by doing
    ls -1 *.rpm
and filtering the package list appropriately.

Your final list can be fed firectly to rpm as
   rpm -Fvh manifest
rather than the splat you've been using.

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