Bug 1048577

Summary: Cannot install local rpm packages using dnf
Product: [Fedora] Fedora Reporter: Ankur Sinha (FranciscoD) <sanjay.ankur>
Component: dnfAssignee: Radek Holy <rholy>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 20CC: akozumpl, jzeleny, packaging-team-maint, pnemade, rholy
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-13 13:24:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ankur Sinha (FranciscoD) 2014-01-05 11:26:14 UTC
Description of problem:
I'm unable to install local rpms using dnf. I clearly remember installing them earlier. Not quite sure when this changed

Version-Release number of selected component (if applicable):
[asinha@ankur-laptop  SRPMS]$ rpm -qa | egrep "dnf|hawkey|librepo-"
librepo-1.5.1-1.fc20.x86_64
hawkey-0.4.7-1.fc20.x86_64
PackageKit-hawkey-0.8.15-1.fc20.x86_64
dnf-0.4.10-1.fc20.noarch
python-librepo-1.5.1-1.fc20.x86_64
python-hawkey-0.4.7-1.fc20.x86_64
[asinha@ankur-laptop  SRPMS]$

How reproducible:
Always

Steps to Reproduce:
1. Build a package in mock
2. Try to install it using dnf
3.

Actual results:
Does not install. Fails with "nothing to do" even if I use --nogpgcheck

Expected results:
Should install the package.

Additional info:
[asinha@ankur-laptop  SRPMS]$ sudo dnf install /var/lib/mock/fedora-20-x86_64/result/albumart-1.6.6-1.fc20.noarch.rpm -v -d 10
Config time: 0.006
cachedir: /var/cache/dnf/x86_64/20
dnf version: 0.4.10
repo: using cache for: updates-testing
repo: using cache for: livna
not found deltainfo for: rpm.livna.org for 20 - x86_64
repo: using cache for: fedora
not found deltainfo for: Fedora 20 - x86_64
repo: using cache for: rpmfusion-free-updates
not found deltainfo for: RPM Fusion for Fedora 20 - Free - Updates
repo: using cache for: rpmfusion-nonfree-updates
not found deltainfo for: RPM Fusion for Fedora 20 - Nonfree - Updates
repo: using cache for: rpmfusion-free
not found deltainfo for: RPM Fusion for Fedora 20 - Free
repo: using cache for: updates
repo: using cache for: rpmfusion-nonfree
not found deltainfo for: RPM Fusion for Fedora 20 - Nonfree
hawkey sack setup time: 0.288
Error: Nothing to do.
[asinha@ankur-laptop  SRPMS]$ cp /var/lib/mock/fedora-20-x86_64/result/albumart-1.6.6-1.fc20.noarch.rpm  ~/
[asinha@ankur-laptop  SRPMS]$ sudo dnf install ~/albumart-1.6.6-1.fc20.noarch.rpm -v -d 10
Config time: 0.006
cachedir: /var/cache/dnf/x86_64/20
dnf version: 0.4.10
repo: using cache for: updates-testing
repo: using cache for: livna
not found deltainfo for: rpm.livna.org for 20 - x86_64
repo: using cache for: fedora
not found deltainfo for: Fedora 20 - x86_64
repo: using cache for: rpmfusion-free-updates
not found deltainfo for: RPM Fusion for Fedora 20 - Free - Updates
repo: using cache for: rpmfusion-nonfree-updates
not found deltainfo for: RPM Fusion for Fedora 20 - Nonfree - Updates
repo: using cache for: rpmfusion-free
not found deltainfo for: RPM Fusion for Fedora 20 - Free
repo: using cache for: updates
repo: using cache for: rpmfusion-nonfree
not found deltainfo for: RPM Fusion for Fedora 20 - Nonfree
hawkey sack setup time: 0.336
Error: Nothing to do.
[asinha@ankur-laptop  SRPMS]$
[asinha@ankur-laptop  SRPMS]$ sudo dnf install ~/albumart-1.6.6-1.fc20.noarch.rpm -v -d 10 --nogpgcheck
Config time: 0.006
cachedir: /var/cache/dnf/x86_64/20
dnf version: 0.4.10
repo: using cache for: updates-testing
repo: using cache for: livna
not found deltainfo for: rpm.livna.org for 20 - x86_64
repo: using cache for: fedora
not found deltainfo for: Fedora 20 - x86_64
repo: using cache for: rpmfusion-free-updates
not found deltainfo for: RPM Fusion for Fedora 20 - Free - Updates
repo: using cache for: rpmfusion-nonfree-updates
not found deltainfo for: RPM Fusion for Fedora 20 - Nonfree - Updates
repo: using cache for: rpmfusion-free
not found deltainfo for: RPM Fusion for Fedora 20 - Free
repo: using cache for: updates
repo: using cache for: rpmfusion-nonfree
not found deltainfo for: RPM Fusion for Fedora 20 - Nonfree
hawkey sack setup time: 0.290
Error: Nothing to do.
[asinha@ankur-laptop  SRPMS]$

Comment 1 Ankur Sinha (FranciscoD) 2014-01-05 11:27:30 UTC
The albumart package is not already installed, just to be sure: 

[asinha@ankur-laptop  SRPMS]$ rpm -q albumart
package albumart is not installed
[asinha@ankur-laptop  SRPMS]$ rpm -qa \*albumart\*
[asinha@ankur-laptop  SRPMS]$

Comment 2 Ales Kozumplik 2014-01-06 07:04:21 UTC
Thank you for the report.

Radek this looks like another corner case in exceptions handling in install(), please take a look.

Comment 3 Ales Kozumplik 2014-01-13 13:24:47 UTC

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