Bug 150843

Summary: yum-2.2.0 accesses the web in >>clean<< mode even if >>-C<< is used
Product: [Fedora] Fedora Reporter: Niki W. Waibel <niki.waibel>
Component: yumAssignee: Jeremy Katz <katzj>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3CC: hugo, katzj
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-09-21 19:25:19 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 Niki W. Waibel 2005-03-11 09:19:51 UTC
From Bugzilla Helper:
User-Agent: Opera/7.54 (X11; SunOS sun4u; U)  [en]

Description of problem:
yum-2.2.0 accesses the web or proxy server in >>clean<< mode (also even if >>-
C<< is used) and reports:
        Cannot find a valid baseurl for repo: base
if
    a) you use --enable-repo=base
    b) there is no proxy / no web available

this did not happen in yum-2.1.12-0.fc3 (prev version).

Version-Release number of selected component (if applicable):
yum-2.2.0-0.fc3

How reproducible:
Always

Steps to Reproduce:
1. # ftp_proxy="http://nosuchserver:8080" \
http_proxy="http://nosuchserver:8080" \
https_proxy="http://nosuchserver:8080" \
yum -y -C clean packages
Cleaning up Packages
0 packages removed

2. # ftp_proxy="http://nosuchserver:8080" \
http_proxy="http://nosuchserver:8080" \
https_proxy="http://nosuchserver:8080" \
yum -y -C --enablerepo=base clean packages
Cannot find a valid baseurl for repo: base


Actual Results:  after 1: all ok -- no web access.
after 2: yum tries to access the web. in this demo-case via an invalid proxy. it 
reports that it cannot find the baseurl.

Expected Results:  it is correct that yum is not able to find the baseurl. but it should at least 
continue cleaning the packages and tread that as a warning instead an error. the 
packages should be cleaned.

Additional info:

yum did not report and error and cleaned the packages in yum-2.1.12-0.fc3 (prev 
version).

Comment 1 Seth Vidal 2005-07-29 18:51:00 UTC
this should be fixed in recent versions of yum - closing as errata

Comment 2 Niki W. Waibel 2005-08-01 12:27:58 UTC
sorry, but i've the same trouble with yum-2.2.1-0.fc3.

Comment 3 Niki W. Waibel 2005-08-05 10:36:33 UTC
same trouble using yum-2.2.2-0.fc3

Comment 4 Rahul Sundaram 2005-08-27 20:02:36 UTC
*** Bug 166367 has been marked as a duplicate of this bug. ***

Comment 5 Jeremy Katz 2005-09-21 19:25:19 UTC
I think by recent Seth actually meant the 2.4 series