replace string with int comparison
authorgenone <genone@gentoo.org>
Fri, 8 Apr 2005 07:58:10 +0000 (07:58 -0000)
committergenone <genone@gentoo.org>
Fri, 8 Apr 2005 07:58:10 +0000 (07:58 -0000)
svn path=/; revision=206

trunk/ChangeLog
trunk/src/glsa-check/glsa.py

index 852c99a1830b329b9cc44fdea68cfe937ada7fec..cfa4b324c2a0c180ed359852b71a26b8a9c09686 100644 (file)
@@ -2,6 +2,7 @@
        * euse: fixed bugs 74344, 75525 and 84521
        * euse: add better support for cascaded profiles
        * glsa-check: use --oneshot (bug 79819)
+       * glsa.py: fix stupid revision comparison bug (bug 75233)
        
 2005-03-12 Aron Griffis <agriffis@gentoo.org>
        * Added eviewcvs to -dev, utility for generating viewcvs URLs
index 3928cbf33b7da3f931ee0c6d140e098ee2a1c046..2cd093a02c62cce78a2f1d214f895a98a7d9d82f 100644 (file)
@@ -318,8 +318,8 @@ def revisionMatch(revisionAtom, portdb):
        mylist = portdb.match(re.sub("-r[0-9]+$", "", revisionAtom[2:]))
        rValue = []
        for v in mylist:
-               r1 = "\""+portage.pkgsplit(v)[-1]+"\""
-               r2 = "\""+portage.pkgsplit(revisionAtom[3:])[-1]+"\""
+               r1 = portage.pkgsplit(v)[-1][1:]
+               r2 = portage.pkgsplit(revisionAtom[3:])[-1][1:]
                if eval(r1+" "+revisionAtom[0:2]+" "+r2):
                        rValue.append(v)
        return rValue