--=-3v2nDsvXHZeg7fEuOXNM Content-Type: text/plain Content-Transfer-Encoding: 7bit On Mon, 2003-04-07 at 19:10, Miles Egan wrote: > Trying to uninstall gnome-libs and all dependencies on a pretty stock > redhat 9 box gives me this: > > Finding updated packages > Downloading needed headers > Resolving dependencies > Traceback (most recent call last): > File "/usr/bin/yum", line 45, in ? > yummain.main(sys.argv[1:]) > File "yummain.py", line 221, in main > File "nevral.py", line 325, in resolvedeps > UnboundLocalError: local variable 'arch' referenced before assignment I have this disorder. Acutely occuring chronic stupidity. it's very sad. patch attached - see if it works for you. thanks -sv --=-3v2nDsvXHZeg7fEuOXNM Content-Disposition: attachment; filename=nevralarch-dumb.patch Content-Type: text/x-patch; name=nevralarch-dumb.patch; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Index: nevral.py =================================================================== RCS file: /home/groups/yum/cvs/yum/nevral.py,v retrieving revision 1.28.2.16 diff -u -r1.28.2.16 nevral.py --- nevral.py 24 Mar 2003 19:09:32 -0000 1.28.2.16 +++ nevral.py 8 Apr 2003 04:08:05 -0000 @@ -320,8 +320,8 @@ if whatprovides and whatprovides.count() != 0: for provhdr in whatprovides: if self.state(provhdr[rpm.RPMTAG_NAME],provhdr[rpm.RPMTAG_ARCH]) in ('e','ed'): - ((e,v,r,a,l,i),s)=rpmDBInfo._get_data(name) - self.add((name,e,v,r,a,l,i),'ed') + ((e,v,r,arch,l,i),s)=rpmDBInfo._get_data(name) + self.add((name,e,v,r,arch,l,i),'ed') log(4, 'Got Erase Dep: %s, %s' %(name,arch)) CheckDeps=1 else: --=-3v2nDsvXHZeg7fEuOXNM--