Did someone goof with yum updates by any chance?
George R Goffe
grgoffe at yahoo.com
Thu Dec 7 23:56:59 UTC 2006
Howdy,
I just ran "yum update" and here's what I'm seeing. Has anyone else seen this? Do
you have a resolution?
Regards,
George....
[root at mechanic ~]# yum update
Loading "skip-broken" plugin
Loading "protectbase" plugin
Loading "installonlyn" plugin
Loading "fastestmirror" plugin
Loading "changelog" plugin
Loading "kernel-module" plugin
Loading "downloadonly" plugin
Plugin "tsflags" uses deprecated constant TYPE_INTERFACE.
Please use TYPE_INTERACTIVE instead.
Loading "tsflags" plugin
Loading "priorities" plugin
Loading "allowdowngrade" plugin
Loading "fedorakmod" plugin
Setting up Update Process
Setting up repositories
not using ftp, http[s], or file for repos, skipping - debug = False
not using ftp, http[s], or file for repos, skipping - import os
not using ftp, http[s], or file for repos, skipping - import sys
not using ftp, http[s], or file for repos, skipping - import GeoIP
not using ftp, http[s], or file for repos, skipping - import ConfigParser
not using ftp, http[s], or file for repos, skipping - import cgi
not using ftp, http[s], or file for repos, skipping - import sqlite
not using ftp, http[s], or file for repos, skipping - import re
not using ftp, http[s], or file for repos, skipping - if debug:
not using ftp, http[s], or file for repos, skipping - import cgitb
not using ftp, http[s], or file for repos, skipping - cgitb.enable()
not using ftp, http[s], or file for repos, skipping - __revision__ = '$Id:
return-mirrorlist.py,v 1.20 2006/11/16 17:33:36 mmcgrath Exp $'
not using ftp, http[s], or file for repos, skipping - CONFIG =
'/etc/check-mirrors.conf'
not using ftp, http[s], or file for repos, skipping - VERSION = '0.2'
not using ftp, http[s], or file for repos, skipping - class ConfigHolder(object):
not using ftp, http[s], or file for repos, skipping - pass
not using ftp, http[s], or file for repos, skipping - class Mirrors:
not using ftp, http[s], or file for repos, skipping - def __init__(self, db,
repo, arch, country, showinvalid):
not using ftp, http[s], or file for repos, skipping - self.db=db
not using ftp, http[s], or file for repos, skipping - self.repo=repo
not using ftp, http[s], or file for repos, skipping - self.arch=arch
not using ftp, http[s], or file for repos, skipping - self.country=country
not using ftp, http[s], or file for repos, skipping -
self.countrySQL=self.getCountry()
not using ftp, http[s], or file for repos, skipping -
self.invalidSQL=self.showInvalid(showinvalid)
not using ftp, http[s], or file for repos, skipping - def getCountry(self):
not using ftp, http[s], or file for repos, skipping - if
self.country.lower() == 'global':
not using ftp, http[s], or file for repos, skipping - return ''
not using ftp, http[s], or file for repos, skipping - else:
not using ftp, http[s], or file for repos, skipping - return "and
country='%s'" % self.country
not using ftp, http[s], or file for repos, skipping - def showInvalid(self,
showinvalid):
not using ftp, http[s], or file for repos, skipping - if showinvalid:
not using ftp, http[s], or file for repos, skipping - return ''
not using ftp, http[s], or file for repos, skipping - else:
not using ftp, http[s], or file for repos, skipping - return 'and
valid="1"'
not using ftp, http[s], or file for repos, skipping - def getMirrors(self, repo,
arch, country):
not using ftp, http[s], or file for repos, skipping - rows =
self.db.selectQuery('SELECT url FROM mirrors where repo="%s" and arch="%s" %s %s;' %
(repo, arch, self.invalidSQL, self.countrySQL))
not using ftp, http[s], or file for repos, skipping - dataList = []
not using ftp, http[s], or file for repos, skipping - for row in rows:
not using ftp, http[s], or file for repos, skipping - dataList.append([
item for item in row])
not using ftp, http[s], or file for repos, skipping - return dataList
not using ftp, http[s], or file for repos, skipping - def
printMirrors(self,recursive=0):
not using ftp, http[s], or file for repos, skipping - """ Print mirrors """
not using ftp, http[s], or file for repos, skipping - rows =
self.getMirrors(self.repo, self.arch, self.country)
not using ftp, http[s], or file for repos, skipping - results = 0
not using ftp, http[s], or file for repos, skipping - for row in rows:
not using ftp, http[s], or file for repos, skipping - for field in row:
not using ftp, http[s], or file for repos, skipping - print "%s" %
re.sub('\x86_64', self.arch, field)
not using ftp, http[s], or file for repos, skipping - results =
results + 1
not using ftp, http[s], or file for repos, skipping - if results == 0:
not using ftp, http[s], or file for repos, skipping - if self.country !=
'global' and recursive == 0:
not using ftp, http[s], or file for repos, skipping - print '# No
results found for country: %s\n# Defaulting to global' % self.country
not using ftp, http[s], or file for repos, skipping -
self.countrySQL=''
not using ftp, http[s], or file for repos, skipping -
self.printMirrors(recursive = 1)
not using ftp, http[s], or file for repos, skipping - else:
not using ftp, http[s], or file for repos, skipping - print '# no
mirrors found, using default'
not using ftp, http[s], or file for repos, skipping - return False
not using ftp, http[s], or file for repos, skipping - else:
not using ftp, http[s], or file for repos, skipping - return True
not using ftp, http[s], or file for repos, skipping - def topMirrors(self, int):
not using ftp, http[s], or file for repos, skipping - """ Return the top n
mirrors """
not using ftp, http[s], or file for repos, skipping - return
self.db.selectQuery('''select url, (successes*100)/(failures+successes) as uptime
from mirrors where repo='%s' and arch='%s' %s %s order by uptime desc limit '%s';'''
% (self.repo, self.arch, self.invalidSQL, self.countrySQL, int))
not using ftp, http[s], or file for repos, skipping - def printTopMirrors(self,
int):
not using ftp, http[s], or file for repos, skipping - """ Prints the top n
mirrors """
not using ftp, http[s], or file for repos, skipping - results = 0
not using ftp, http[s], or file for repos, skipping - for row in
self.topMirrors(int):
not using ftp, http[s], or file for repos, skipping - results = results
+ 1
not using ftp, http[s], or file for repos, skipping - print '%s # %s%%'
% (row[0], row[1])
not using ftp, http[s], or file for repos, skipping - if results == 0:
not using ftp, http[s], or file for repos, skipping - print '# no
results found, using default'
not using ftp, http[s], or file for repos, skipping - return False
not using ftp, http[s], or file for repos, skipping - else:
not using ftp, http[s], or file for repos, skipping - return True
not using ftp, http[s], or file for repos, skipping - def printStats(self):
not using ftp, http[s], or file for repos, skipping - """ Print statistical
information about the mirrors """
not using ftp, http[s], or file for repos, skipping - htmlprint('<br><a
href="?repo=%s&arch=%s&country=%s">No Stats</a>' % (self.repo, self.arch,
self.country))
not using ftp, http[s], or file for repos, skipping - htmlprint('<br><a
href="?repo=%s&arch=%s&stats=1&country=%s&showinvalid=1">Show invalid</a>' %
(self.repo, self.arch, self.country))
not using ftp, http[s], or file for repos, skipping - htmlprint('<br><a
href="?repo=%s&arch=%s&stats=1&country=%s">Valid only</a>' % (self.repo, self.arch,
self.country))
not using ftp, http[s], or file for repos, skipping - rows =
self.db.selectQuery('select *, (successes*100)/(failures+successes) as uptime from
mirrors where repo="%s" and arch="%s" %s %s order by uptime desc;' % (self.repo,
self.arch, self.invalidSQL, self.countrySQL))
not using ftp, http[s], or file for repos, skipping - htmlprint('<!-- Begin
Statistical information -->')
not using ftp, http[s], or file for repos, skipping - for row in
rows.fetchall():
not using ftp, http[s], or file for repos, skipping -
htmlprint('<table>')
not using ftp, http[s], or file for repos, skipping - htmlprint('
<tr><th>URL:</th><th>%s</th></tr>' % row[4])
not using ftp, http[s], or file for repos, skipping - htmlprint('
<tr><td>Country:</td><td>%s</td></tr>' % row[3])
not using ftp, http[s], or file for repos, skipping - htmlprint('
<tr><td>Last Good:</td><td>%s</td></tr>' % row[8])
not using ftp, http[s], or file for repos, skipping - htmlprint('
<tr><td>Uptime</td><td>%i%%</td></tr>' % row[9])
not using ftp, http[s], or file for repos, skipping - htmlprint('
<tr><td>Valid</td><td>%i</td></tr>' % row[7])
not using ftp, http[s], or file for repos, skipping -
htmlprint('</table>')
not using ftp, http[s], or file for repos, skipping - htmlprint('<!-- END
Statistical information -->')
not using ftp, http[s], or file for repos, skipping - return True
not using ftp, http[s], or file for repos, skipping - def htmlprint(str):
not using ftp, http[s], or file for repos, skipping - """ Why did I even bother
with this? """
not using ftp, http[s], or file for repos, skipping - print "%s" % str
not using ftp, http[s], or file for repos, skipping - class RepoDB:
not using ftp, http[s], or file for repos, skipping - def __init__(self, db):
not using ftp, http[s], or file for repos, skipping - self.db=db
not using ftp, http[s], or file for repos, skipping - (self.dbconn,
self.dbcursor)= self.connect()
not using ftp, http[s], or file for repos, skipping - return None
not using ftp, http[s], or file for repos, skipping - def connect(self):
not using ftp, http[s], or file for repos, skipping - try:
not using ftp, http[s], or file for repos, skipping - conn =
sqlite.connect(self.db, timeout=20.0)
not using ftp, http[s], or file for repos, skipping - cursor =
conn.cursor()
not using ftp, http[s], or file for repos, skipping - except sqlite.Error,
errmsg:
not using ftp, http[s], or file for repos, skipping - errorprint('Failed
to connect to database: %s' % db)
not using ftp, http[s], or file for repos, skipping - errorprint('Err:
%s ' % errmsg)
not using ftp, http[s], or file for repos, skipping - return None, None
not using ftp, http[s], or file for repos, skipping - else:
not using ftp, http[s], or file for repos, skipping - return(conn,
cursor)
not using ftp, http[s], or file for repos, skipping - def selectQuery(self,
query):
not using ftp, http[s], or file for repos, skipping - """ Run query and
return the results """
not using ftp, http[s], or file for repos, skipping - try:
not using ftp, http[s], or file for repos, skipping -
self.dbcursor.execute(query)
not using ftp, http[s], or file for repos, skipping - except sqlite.Error,
err:
not using ftp, http[s], or file for repos, skipping - if debug == True:
not using ftp, http[s], or file for repos, skipping - print "%s" %
err
not using ftp, http[s], or file for repos, skipping - print "Query:
%s" % query
not using ftp, http[s], or file for repos, skipping - sys.exit(1)
not using ftp, http[s], or file for repos, skipping - return self.dbcursor
not using ftp, http[s], or file for repos, skipping - def close(self):
not using ftp, http[s], or file for repos, skipping - self.dbconn.cursor()
not using ftp, http[s], or file for repos, skipping - self.dbconn.close()
not using ftp, http[s], or file for repos, skipping - def get_config(cnf_fn):
not using ftp, http[s], or file for repos, skipping - conf =
ConfigParser.ConfigParser()
not using ftp, http[s], or file for repos, skipping - conf.read(cnf_fn)
not using ftp, http[s], or file for repos, skipping - config = ConfigHolder()
not using ftp, http[s], or file for repos, skipping - config.paths = {}
not using ftp, http[s], or file for repos, skipping - config.prefixes = {}
not using ftp, http[s], or file for repos, skipping - config.canonical = {}
not using ftp, http[s], or file for repos, skipping - config.dbpath = ""
not using ftp, http[s], or file for repos, skipping - for section in
conf.sections():
not using ftp, http[s], or file for repos, skipping - if section.lower() ==
'global':
not using ftp, http[s], or file for repos, skipping - config.dbpath =
conf.get(section, 'db')
not using ftp, http[s], or file for repos, skipping - continue
not using ftp, http[s], or file for repos, skipping - if
conf.has_option(section, 'outputpath'):
not using ftp, http[s], or file for repos, skipping -
config.paths[section] = conf.get(section, 'outputpath')
not using ftp, http[s], or file for repos, skipping - if
conf.has_option(section, 'canonical'):
not using ftp, http[s], or file for repos, skipping -
config.canonical[section] = conf.get(section, 'canonical')
not using ftp, http[s], or file for repos, skipping - if
conf.has_option(section, 'file_prefix'):
not using ftp, http[s], or file for repos, skipping -
config.prefixes[section] = conf.get(section, 'file_prefix')
not using ftp, http[s], or file for repos, skipping - else:
not using ftp, http[s], or file for repos, skipping -
config.prefixes[section] = '%s' % section
not using ftp, http[s], or file for repos, skipping - return config
not using ftp, http[s], or file for repos, skipping - def sanity_check(config,
form):
not using ftp, http[s], or file for repos, skipping - errors = []
not using ftp, http[s], or file for repos, skipping - if not
form.has_key('repo') or not form['repo'].value:
not using ftp, http[s], or file for repos, skipping - msg = "# repository
not specified"
not using ftp, http[s], or file for repos, skipping - errors.append(msg)
not using ftp, http[s], or file for repos, skipping - return errors
not using ftp, http[s], or file for repos, skipping - repo = form['repo'].value
not using ftp, http[s], or file for repos, skipping - if not
config.paths.has_key(repo):
not using ftp, http[s], or file for repos, skipping - msg = "# no repository
available for repo %s" % repo
not using ftp, http[s], or file for repos, skipping - errors.append(msg)
not using ftp, http[s], or file for repos, skipping - return errors
not using ftp, http[s], or file for repos, skipping - if not
os.path.exists(config.paths[repo]):
not using ftp, http[s], or file for repos, skipping - msg = "# Path: %s for
repo %s does not exist" % (config.paths[repo], repo)
not using ftp, http[s], or file for repos, skipping - errors.append(msg)
not using ftp, http[s], or file for repos, skipping - return errors
not using ftp, http[s], or file for repos, skipping - if not
form.has_key('arch') or not (form['arch'].value.__eq__('i386') or
form['arch'].value.__eq__('ppc') or form['arch'].value.__eq__('x86_64')):
not using ftp, http[s], or file for repos, skipping - msg = "# no arch
specified\n# Valid archs: i386, ppc, x86_64"
not using ftp, http[s], or file for repos, skipping - errors.append(msg)
not using ftp, http[s], or file for repos, skipping - return errors
not using ftp, http[s], or file for repos, skipping - return errors
not using ftp, http[s], or file for repos, skipping - def main():
not using ftp, http[s], or file for repos, skipping - form = cgi.FieldStorage()
not using ftp, http[s], or file for repos, skipping - if form.has_key('stats'):
not using ftp, http[s], or file for repos, skipping - print 'Content-type:
text/html'
not using ftp, http[s], or file for repos, skipping - else:
not using ftp, http[s], or file for repos, skipping - print 'Content-type:
text/plain'
not using ftp, http[s], or file for repos, skipping - print
not using ftp, http[s], or file for repos, skipping - config =
get_config(CONFIG)
not using ftp, http[s], or file for repos, skipping - errors =
sanity_check(config, form)
not using ftp, http[s], or file for repos, skipping - DB = RepoDB(config.dbpath)
not using ftp, http[s], or file for repos, skipping - if errors:
not using ftp, http[s], or file for repos, skipping - for error in errors:
not using ftp, http[s], or file for repos, skipping - print '%s' % error
not using ftp, http[s], or file for repos, skipping - sys.exit()
not using ftp, http[s], or file for repos, skipping - repo = form['repo'].value
not using ftp, http[s], or file for repos, skipping - arch = form['arch'].value
not using ftp, http[s], or file for repos, skipping - lists_path =
config.paths[repo]
not using ftp, http[s], or file for repos, skipping - prefix =
config.prefixes[repo]
not using ftp, http[s], or file for repos, skipping - canonical =
config.canonical[repo]
not using ftp, http[s], or file for repos, skipping - country_specified = False
not using ftp, http[s], or file for repos, skipping - country_list = []
not using ftp, http[s], or file for repos, skipping - if not
form.has_key('country'):
not using ftp, http[s], or file for repos, skipping - reqip =
os.environ['REMOTE_ADDR']
not using ftp, http[s], or file for repos, skipping - gi =
GeoIP.new(GeoIP.GEOIP_STANDARD)
not using ftp, http[s], or file for repos, skipping - caller_country =
gi.country_code_by_addr(reqip)
not using ftp, http[s], or file for repos, skipping - if caller_country:
not using ftp, http[s], or file for repos, skipping - country_list =
[caller_country]
not using ftp, http[s], or file for repos, skipping - else:
not using ftp, http[s], or file for repos, skipping - country_specified =
True
not using ftp, http[s], or file for repos, skipping - l =
form['country'].value
not using ftp, http[s], or file for repos, skipping - country_list =
l.split(',')
not using ftp, http[s], or file for repos, skipping - if not country_list:
not using ftp, http[s], or file for repos, skipping - country_list =
['global']
not using ftp, http[s], or file for repos, skipping - if not country_specified:
not using ftp, http[s], or file for repos, skipping - return_file =
'%s/%s-%s-%s.txt' % (lists_path, prefix, country_list[0], arch)
not using ftp, http[s], or file for repos, skipping - rp =
os.path.realpath(return_file)
not using ftp, http[s], or file for repos, skipping - if country_list[0] !=
'global' and not os.path.exists(rp):
not using ftp, http[s], or file for repos, skipping - country_list =
['global']
not using ftp, http[s], or file for repos, skipping - for country in
country_list:
not using ftp, http[s], or file for repos, skipping - return_file =
'%s/%s-%s-%s.txt' % (lists_path, prefix, country, arch)
not using ftp, http[s], or file for repos, skipping - rp =
os.path.realpath(return_file)
not using ftp, http[s], or file for repos, skipping - if not
rp.startswith(lists_path):
not using ftp, http[s], or file for repos, skipping - print "# someone
is messing with the path via get-string %s not inside %s" % (rp, lists_path)
not using ftp, http[s], or file for repos, skipping - continue
not using ftp, http[s], or file for repos, skipping - if not
os.path.exists(return_file):
not using ftp, http[s], or file for repos, skipping - print '# no file
found for repo = %s, country = %s, arch = %s' % (repo, country, arch)
not using ftp, http[s], or file for repos, skipping - print '# filename
was: %s' % os.path.basename(return_file)
not using ftp, http[s], or file for repos, skipping - print '# repo = %s
country = %s arch = %s ' % (repo, country, arch)
not using ftp, http[s], or file for repos, skipping - mirrors = Mirrors(DB,
repo, arch, country, form.has_key('showinvalid'))
not using ftp, http[s], or file for repos, skipping - if
form.has_key('stats'):
not using ftp, http[s], or file for repos, skipping -
mirrors.printStats()
not using ftp, http[s], or file for repos, skipping - else:
not using ftp, http[s], or file for repos, skipping - if
form.has_key('top'):
not using ftp, http[s], or file for repos, skipping - if not
mirrors.printTopMirrors(form['top'].value):
not using ftp, http[s], or file for repos, skipping - print "%s"
% re.sub('\x86_64', arch, canonical)
not using ftp, http[s], or file for repos, skipping - else:
not using ftp, http[s], or file for repos, skipping - if not
mirrors.printMirrors():
not using ftp, http[s], or file for repos, skipping - print "%s"
% re.sub('\x86_64', arch, canonical)
not using ftp, http[s], or file for repos, skipping - DB.close()
not using ftp, http[s], or file for repos, skipping - if __name__ == '__main__':
not using ftp, http[s], or file for repos, skipping - main()
Error: Cannot find a valid baseurl for repo: core
=====
_/_/_/_/ _/_/_/_/ _/_/_/_/ _/_/_/ _/_/_/_/ _/_/_/_/ -----
_/ _/ _/ _/ _/ _/ _/ _/
_/ _/_/ _/_/_/_/ _/ _/ _/_/_/ _/ _/_/ _/_/_/_/ -----
_/ _/ _/ _/ _/ _/ _/ _/ _/ _/
_/_/_/_/ _/_/_/_/ _/_/_/_/ _/ _/ _/_/_/_/ _/_/_/_/ -----
"It's not what you know that hurts you, It's what you know that ain't so." Will Rogers
____________________________________________________________________________________
Yahoo! Music Unlimited
Access over 1 million songs.
http://music.yahoo.com/unlimited
More information about the fedora-test-list
mailing list