Bug 837018

Summary: yum copies RPMs from media repo to /var/cache
Product: [Fedora] Fedora Reporter: Cristian Ciupitu <cristian.ciupitu>
Component: yumAssignee: Fedora Packaging Toolset Team <packaging-team>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 17CC: ffesti, maxamillion, packaging-team, tim.lauridsen, zpavlas
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: 2012-08-09 22:52:11 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 Cristian Ciupitu 2012-07-02 14:17:09 UTC
Description of problem:
I'm using my Fedora 17 x86_64 install DVD as a yum repository and when I'm installing a package from that repository, it gets copied to /var/cache/yum/*/*/media/packages.

Version-Release number of selected component (if applicable):
yum-3.4.3-28.fc17.noarch

How reproducible:
Everytime

Steps to Reproduce:
1. Add media repository:
cat > /etc/yum.repos.d/media.repo < "EOF"
[media]
name=Fedora $releasever - $basearch media
baseurl=file:///mnt/misc/Fedora-DVDs/$releasever/$basearch/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
metadata_expire=-1
cost=500
EOF

2. Install something from the media repository, e.g. yum install bc
  
Actual results:
The bc RPM will be copied to /var/cache/yum/.../media/packages

Expected results:
The bc should not be copied.

Additional info:
yum -C install bc  fails with:
  Error Downloading Packages:
    bc-1.06.95-6.fc17.x86_64: Caching enabled but no local cache of /var/cache/yum/x86_64/17/media/packages/bc-1.06.95-6.fc17.x86_64.rpm from media

Comment 1 Zdeněk Pavlas 2012-07-12 14:12:14 UTC
ACK, This is a bug in the new downloader.. Setting 'async=0' for the repo work this around until I find out a better solution.

Comment 2 Cristian Ciupitu 2012-07-12 14:25:33 UTC
The suggested workaround fixed the issue. Thank you!

Comment 3 Fedora Update System 2012-07-20 12:23:39 UTC
python-urlgrabber-3.9.1-14.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/python-urlgrabber-3.9.1-14.fc17

Comment 4 Fedora Update System 2012-07-21 02:57:10 UTC
Package python-urlgrabber-3.9.1-14.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing python-urlgrabber-3.9.1-14.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-10943/python-urlgrabber-3.9.1-14.fc17
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2012-08-09 22:52:11 UTC
python-urlgrabber-3.9.1-14.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.