From 89b320a22b7e2504d00e18475e07e43ab56f2ad3 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 13 May 2012 14:42:08 -0700 Subject: [PATCH] egencache: use vercmp instead of pkgcmp --- bin/egencache | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/egencache b/bin/egencache index 13860bca0..2f53b40e3 100755 --- a/bin/egencache +++ b/bin/egencache @@ -1,5 +1,5 @@ #!/usr/bin/python -# Copyright 2009-2011 Gentoo Foundation +# Copyright 2009-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 from __future__ import print_function @@ -42,7 +42,7 @@ from portage.manifest import guessManifestFileType from portage.util import cmp_sort_key, writemsg_level from portage import cpv_getkey from portage.dep import Atom, isjustname -from portage.versions import pkgcmp, pkgsplit, vercmp +from portage.versions import pkgsplit, vercmp try: from xml.etree import ElementTree @@ -570,7 +570,7 @@ class GenUseLocalDesc(object): return cmp_func(atomb.operator, atoma.operator) # Version matching elif atoma.cpv != atomb.cpv: - return pkgcmp(pkgsplit(atoma.cpv), pkgsplit(atomb.cpv)) + return vercmp(atoma.version, atomb.version) # Versions match, let's fallback to operator matching else: return cmp_func(ops.get(atoma.operator, -1), -- 2.26.2