commit:     628bef00999b4d6250169a5bf9b73dc7bc671015
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: Wed Jun 24 12:13:27 2015 +0000
URL:        https://gitweb.gentoo.org/proj/gnome.git/commit/?id=628bef00

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 8ec59c0..a517ed8 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_get_version(cpv).startswith(release)
 
 
 def issystempackage(cpv):

Reply via email to