Bug 872517 - yum downloads metadata for user when not necessary
Summary: yum downloads metadata for user when not necessary
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: yum
Version: 5.9
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Packaging Maintenance Team
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-02 10:07 UTC by Karel Srot
Modified: 2014-01-21 06:25 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 872518 (view as bug list)
Environment:
Last Closed: 2013-03-08 13:51:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Karel Srot 2012-11-02 10:07:52 UTC
Description of problem:

when yum is executed by regular user, yum downloads metadata even if the "root" metadata are up-to-date.


[root@server ~]# rpm -q yum
yum-3.2.22-40.el5
[root@server ~]# yum list bash
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Excluding Packages in global exclude list
Finished
Installed Packages
bash.i386                                         3.2-32.el5                                         installed
[root@server ~]# su - karel
[karel@server ~]$ yum list bash
Loaded plugins: product-id, security, subscription-manager
beaker-client                                                                                           28/28
beaker-harness                                                                                          35/35
qa-tools                                                                                              193/193
rhel-5                                                                                              2518/2518
rhel-5-debug                                                                                        1022/1022
Excluding Packages in global exclude list
Finished
Installed Packages
bash.i386                                         3.2-32.el5                                         installed


Probably fixed upstream with 
http://yum.baseurl.org/gitweb?p=yum.git;a=commitdiff;h=a5e26a78e485

http://yum.baseurl.org/gitweb?p=yum.git;a=commitdiff;h=a5e26a78e485

Comment 1 James Antill 2012-11-02 15:02:17 UTC
 This is true for RHEL-6, but I'm pretty sure there's a huge difference between what is in RHEL-5 and what is upstream ... so the changes required for RHEL-5 might be much more significant.

Comment 2 Zdeněk Pavlas 2013-03-08 13:51:46 UTC
The upstream patch fixes breakage introduced when "prerepoconf" was merged, but that's not in EL5 code, so the cause is definitely different here (probably just a small bug, because preloading of metadata from system cache IS attemted here, too).  Given the low impact, I'm closing this bug.


Note You need to log in before you can comment on or make changes to this bug.