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
Hans Christian Studt wrote:
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).
Check your /var/cache/yum/whatever_your_development_directory_is_called/packages/ directory and check if you still have in there and upgrade with rpm -Uvh --oldpackage yum-2.0.5.20040224-2.noarch.rpm .
HTH
:: Marcus
On Tue, 2004-03-02 at 20:54 +0100, Hans Christian Studt wrote:
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).
For those who have hit this problem (and, like me, didn't have the old yum RPM in the package cache), you can download the yum 2.0.5 RPM from:
http://linux.duke.edu/projects/yum/download.ptml
Hope this helps,
Peter.
On Wed, Mar 03, 2004 at 08:25:20AM +0000, Peter Whysall wrote:
On Tue, 2004-03-02 at 20:54 +0100, Hans Christian Studt wrote:
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).
For those who have hit this problem (and, like me, didn't have the old yum RPM in the package cache), you can download the yum 2.0.5 RPM from:
It does.
One would hope that up2date and yum do not change within 48 hours of each other in the development process.
Call one chicken and the other egg then one can bootstrap or repair the other.