Today FC2T1 was updated to yum-2.0.5.20040229-1.
The problem is that now yum does not work, which mean I can not receive a fixed version of yum (catch-22).
------------------------------------------------------------------ #rpm -qa | grep yum yum-2.0.5.20040229-1 ------------------------------------------------------------------ #yum check-update Gathering header information file(s) from server(s) Server: Fedora Core 1.90 - Development Tree Finding updated packages Downloading needed headers Traceback (most recent call last): File "/usr/bin/yum", line 30, in ? yummain.main(sys.argv[1:]) File "/usr/share/yum/yummain.py", line 253, in main clientStuff.download_headers(HeaderInfo, nulist) File "/usr/share/yum/clientStuff.py", line 919, in download_headers cachedbdict = returnCacheDBHeaders(nulist) File "/usr/share/yum/clientStuff.py", line 901, in returnCacheDBHeaders mi = cachedb.dbMatch() UnboundLocalError: local variable 'cachedb' referenced before assignment ------------------------------------------------------------------ /usr/share/yum/clientStuff.py ------------------------------------------------------------------ def returnCacheDBHeaders(nulist): returndict = {} if conf.usecachedb and os.path.exists(conf.cachedb): rpm.addMacro("_dbpath", "/") cachedb = rpmUtils.Rpm_Ts_Work(dbPath=conf.cachedb) cachedb.setVSFlags(-1)
mi = cachedb.dbMatch() for h in mi: hdrobj = rpmUtils.Header_Work(h) (n,e,v,r,a) = hdrobj.nevra() e = hdrobj.fixedEpoch() if (n, a) in nulist: returndict[(n, a, e, v, r)] = hdrobj del mi del cachedb rpm.delMacro("_dbpath")
return returndict
def download_headers(HeaderInfo, nulist): total = len(nulist) "/usr/share/yum/clientStuff.py" 1343L, 54495C 914,1 67% ------------------------------------------------------------------
Mvh Hans Christian Studt Private +45 48 79 79 89 Mobile +45 29 23 54 14 Business +45 36 14 54 14 mailto:hc@studt.dk http://hc.studt.dk Powered by Linux 2.6.1-1.65