[Yum] update kernel/glibc etc bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--=-U1YFtOt8i/ST2jmX/Ofq
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi all,
 got it!

so when you loop through a list of archs and you're trying to see if
you've matched any/all of them- its a good idea to NOT exit the loop if
it fails the first time through.

so I've got a new daily tarball up that I'd like y'all to try out.

the patch is attached to this mail and its included in:

http://www.dulug.duke.edu/yum/download/yum-20020925.tar.gz


it makes my test case work and I think it will work for y'all too.

thanks for pointing this one out.

-sv


--=-U1YFtOt8i/ST2jmX/Ofq
Content-Disposition: attachment; filename=update-arch.patch
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; name=update-arch.patch; charset=ISO-8859-1

--- pkgaction.py        26 Aug 2002 04:22:28 -0000      1.27
+++ pkgaction.py        25 Sep 2002 05:00:09 -0000      1.28
@@ -138,10 +138,12 @@
                         foundit=3D1
                         archlist =3D archwork.availablearchs(hinevral,name=
)
                         bestarch =3D archwork.bestarch(archlist)
+                        log(4,"bestarch %s" % bestarch)
                         for currarch in archlist:
+                            log(4, "arch =3D %s" % currarch)
                             if uplist.count((name,currarch))>0:
                                 #its one of the archs we do and its in the=
 uplist - update it
-                                log(4,"Updating %s" % (name))
+                                log(4, "Updating %s" % (name))
                                 ((e, v, r, a, l, i), s)=3Dhinevral._get_da=
ta(name,currarch)
                                 tsnevral.add((name,e,v,r,a,l,i),'u')      =
     =20
                             elif uplist.count((name,currarch)) < 1 and nul=
ist.count((name,currarch))>0:
@@ -152,8 +154,8 @@
                                     tsnevral.add((name,e,v,r,a,l,i),'iu')
                             elif uplist.count((name,currarch)) < 1 and nul=
ist.count((name,currarch))<1:
                                 #its an arch we do, its not updated and it=
s installed
-                                errorlog(1,"%s is the latest version" % (n=
ame))
-                                sys.exit(1)
+                                #but we keep going b/c we may not be done
+                                log(5, "nope not %s" % currarch)
                 if foundit=3D=3D0:
                     if rpmnevral.exists(n):
                         errorlog(1,"%s is installed and the latest version=
." % (n))
--=-U1YFtOt8i/ST2jmX/Ofq--



[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux