Bug 713954

Summary: Options for --resign/--addsign produce wrong error when rpm-sign not installed
Product: [Fedora] Fedora Reporter: BJ Dierkes <derks>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: ffesti, jnovy, pmatilai
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-17 07:28:10 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 BJ Dierkes 2011-06-16 21:20:32 UTC
Description of problem:

After doing a preupgrade from F14 -> F15, the commands 'rpm --resign/--addsign' were broken and displayed 'No such file for directory' error.  I was then informed by nirik in #fedora-devel that those features were now available in 'rpm-sign' sub package.  The problem is, the attempted/failed execution of 'rpm --resign/--addsign' should result in a 'Unknown option' or 'Unknown command' error... and not an obscure 'No such file or directory' (which points toward the rpm file as the problem which its not).

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

rpm-4.9.0-9


How reproducible:

Every time.


Steps to Reproduce:
1. rpm -e rpm-sign

2. rpm --resign /path/to/rpm/package
rpm: /path/to/rpm/package No such file or directory.


3. yum install rpm-sign

4. rpm --resign /path/to/rpm/package
Success.

  
Actual results:

The following error, which can be misleading and obscure.

rpm: /path/to/rpm/package: No such file or directory.



Expected results:

rpm: --resign/--addsign: unknown option


Additional info:

Comment 1 Panu Matilainen 2011-06-17 07:28:10 UTC

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