Bug 166367

Summary: yum tries to contact repository even if -C (cache) is specified
Product: [Fedora] Fedora Reporter: Hugo Cisneiros <hugo>
Component: yumAssignee: Jeremy Katz <katzj>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: katzj
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: 2005-08-27 20:02:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Hugo Cisneiros 2005-08-19 19:57:43 UTC
Description of problem:

When not online, and specifying -C in the command line, yum still tries to
contact a repository. When online, -C works well and reads from cache, but still
contacts a repository.

This is applicable when someone is offline and tries to search for some package
in the yum cache, doing for example:

yum -C search gxine


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

I tried with these versions of yum:
   * yum-2.3.2-7
   * yum-2.3.4-0 (updates/fc4/testing)
   * yum-2.4.0-0 (updates/fc4/testing)

How reproducible:

Steps to Reproduce:
1. go offline or block your internet connection to the outside
2. yum -C search <package>
  
Actual results:

yum tries to contact a repository and waits for a very long time (or forever, I
didn't wait it for finish). Network activity shows that yum is trying to contact
some server on port 80.

Expected results:

yum should read only from the cache.

Comment 1 Rahul Sundaram 2005-08-27 20:02:29 UTC
Thanks for the bug report. This particular bug has already been reported
into our bug tracking system, but please feel free to report any further
bugs you find.

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