From: genone Date: Fri, 8 Apr 2005 07:58:10 +0000 (-0000) Subject: replace string with int comparison X-Git-Tag: gentoolkit-0.2.4.3~300 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3a216d4f3d50af07ff2f1271f978d73522702a0c;p=gentoolkit.git replace string with int comparison svn path=/; revision=206 --- diff --git a/trunk/ChangeLog b/trunk/ChangeLog index 852c99a..cfa4b32 100644 --- a/trunk/ChangeLog +++ b/trunk/ChangeLog @@ -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 * Added eviewcvs to -dev, utility for generating viewcvs URLs diff --git a/trunk/src/glsa-check/glsa.py b/trunk/src/glsa-check/glsa.py index 3928cbf..2cd093a 100644 --- a/trunk/src/glsa-check/glsa.py +++ b/trunk/src/glsa-check/glsa.py @@ -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