Bug 43010

Summary: RPM allows duplicate filenames on command line and installs the package twice
Product: [Retired] Red Hat Linux Reporter: Matt Perry <matt>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED DUPLICATE QA Contact: David Lawrence <dkl>
Severity: low Docs Contact:
Priority: medium    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-05-31 06:35:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matt Perry 2001-05-31 06:35:43 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)

Description of problem:
I'm trying this with RPM v4.0.2 on RH 7.1 on an Intel box.
If you give a command as follows: rpm -Fvh gnupg-1.0.5-1.i386.rpm *

RPM will see the gnupg package twice and will install it twice with the 
following output:

[root@ns2 patches]# rpm -Fvh gnupg-1.0.5-1.i386.rpm *
Preparing...                ########################################### 
[100%]
   1:gnupg                  ########################################### [ 
50%]
   2:gnupg                  ########################################### 
[100%]

While this didn't seem to cause any problems, maybe RPM should check the 
package names and silently remove duplicates.

How reproducible:
Always

Steps to Reproduce:
Use RPM to install or upgrade a package and give the package name twice on 
the command line.
	

Actual Results:  RPM appeared to install the package twice.


Expected Results:  RPM should have silently removed the duplicate package 
name from the command line and installed the package only once.

Additional info:  none

Comment 1 Jeff Johnson 2001-06-06 17:27:32 UTC

*** This bug has been marked as a duplicate of 7771 ***