Bug 1140864

Summary: reposync -u option ignores already downloaded packages
Product: Red Hat Enterprise Linux 7 Reporter: Larry <thegrtgot1516>
Component: yum-utilsAssignee: Valentina Mukhamedzhanova <vmukhame>
Status: CLOSED ERRATA QA Contact: Karel Srot <ksrot>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.0CC: ksrot, vmukhame
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: yum-utils-1.1.31-27.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-05 09:03:37 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:
Attachments:
Description Flags
Script
none
RHEL 7.0 reposync reults
none
RHEL 6.5 reposync results none

Description Larry 2014-09-11 21:28:20 UTC
Created attachment 936675 [details]
Script

Description of problem:
When running reposync and using the -u option to report on items needing downloading, the report always shows that ALL items need to be downloaded even if they already reside in the local repository.


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


How reproducible:
Always


Steps to Reproduce:
1.Run reposync
2.Use option -u
3.

See test script in attachment reposyncCheck.sh
See output results from RHEL 7.0 in attachment reposyncCheckNew
See output results from RHEL 6.5 in attachment reposyncCheckOld

Actual results:
All items residing in the remote repository are reported as needed to be downloaded to the local repository.  This even if the items already exist in the local repository


Expected results:  Only items residing in the remote repository that are not in the local repository should be reported.


Additional info:

Comment 1 Larry 2014-09-11 21:30:45 UTC
Created attachment 936676 [details]
RHEL 7.0 reposync reults

This is the results received running the version of reposync included in RHEL 7.0.  All packages in the Red Hat repository are shown as needing to be downloaded.  Actually, only 2 of these packages are not currently in the local repo.

Comment 2 Larry 2014-09-11 21:33:41 UTC
Created attachment 936677 [details]
RHEL 6.5 reposync results

This is the results received running the version of reposync included in RHEL 6.5 under RHEL 7.0.  Only the 2 packages needing downloading are shown. Others are shown as being skipped.

Comment 4 Valentina Mukhamedzhanova 2014-09-17 08:39:45 UTC
Thank you for the report, here is the upstream fix - http://yum.baseurl.org/gitweb?p=yum-utils.git;a=commitdiff;h=a701efaea04a55530715b6f100fbd7806e52e858

Comment 10 errata-xmlrpc 2015-03-05 09:03:37 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-0401.html