Bug 1048468

Summary: dnf --cacheonly list installed tries to download repodata
Product: [Fedora] Fedora Reporter: Elad Alfassa <elad>
Component: dnfAssignee: Ales Kozumplik <akozumpl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: akozumpl, jzeleny, pnemade, rholy
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dnf-0.4.12-1.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-23 11:11:55 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:
Bug Depends On:    
Bug Blocks: 1030440    

Description Elad Alfassa 2014-01-04 12:07:02 UTC
[elad@rincewind bash-completion]$ dnf --cacheonly list installed
google-talkplugin                                                                                                      12 kB/s | 2.8 kB     00:00    
[Errno 13] Permission denied: '/var/cache/dnf/x86_64/20/google-talkplugin/repodata/repodata'



It appears that with --cacheonly dnf will still try to update the cache (which it shouldn't) but will try to download it to the system cache dir instead of the user one (which it also shouldn't) and thus the command fails.

Comment 1 Ales Kozumplik 2014-01-06 07:33:11 UTC
Thanks for the report, this is a real issue, we will take a look.

Comment 2 Ales Kozumplik 2014-01-20 13:33:07 UTC
reproduced

Comment 3 Ales Kozumplik 2014-01-20 15:01:34 UTC
Fixed by 0608ac8.

Comment 4 Fedora Update System 2014-01-21 07:39:52 UTC
dnf-0.4.12-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/dnf-0.4.12-1.fc20

Comment 5 Fedora Update System 2014-01-22 03:11:41 UTC
Package dnf-0.4.12-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-0.4.12-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-1270/dnf-0.4.12-1.fc20
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2014-01-23 11:11:55 UTC
dnf-0.4.12-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.