commit:     9e2189f5a6efd3c0ab7d1f386f532d3d42b18734
Author:     Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 24 12:07:39 2015 +0000
Commit:     Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
CommitDate: Thu Jun 25 12:46:09 2015 +0000
URL:        https://gitweb.gentoo.org/proj/gnome.git/commit/?id=9e2189f5

scripts/gen_archlist: fix belongs_release

get_ver is undefined, I wonder how this could ever work.

 scripts/gen_archlist.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/gen_archlist.py b/scripts/gen_archlist.py
index 3ac9f88..9a74d21 100755
--- a/scripts/gen_archlist.py
+++ b/scripts/gen_archlist.py
@@ -109,11 +109,11 @@ def make_unstable(kws):
 
 
 def belongs_release(cpv, release):
-    "Check if the given cpv belongs to the given release"
+    """Check if `cpv` belongs to the release `release`."""
     # FIXME: This failure function needs better logic
     if CHECK_DEPS:
         raise Exception('This function is utterly useless with RECURSIVE mode')
-    return get_ver(cpv).startswith(release)
+    return portage.versions.cpv_getversion(cpv).startswith(release)
 
 
 def issystempackage(cpv):

Reply via email to