Gentoo Archives: gentoo-commits

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:gen_archlist_cleanup commit in: scripts/
Date: Fri, 26 Jun 2015 22:32:10
Message-Id: 1435236369.9e2189f5a6efd3c0ab7d1f386f532d3d42b18734.eva@gentoo
1 commit: 9e2189f5a6efd3c0ab7d1f386f532d3d42b18734
2 Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 24 12:07:39 2015 +0000
4 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 25 12:46:09 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=9e2189f5
7
8 scripts/gen_archlist: fix belongs_release
9
10 get_ver is undefined, I wonder how this could ever work.
11
12 scripts/gen_archlist.py | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
14
15 diff --git a/scripts/gen_archlist.py b/scripts/gen_archlist.py
16 index 3ac9f88..9a74d21 100755
17 --- a/scripts/gen_archlist.py
18 +++ b/scripts/gen_archlist.py
19 @@ -109,11 +109,11 @@ def make_unstable(kws):
20
21
22 def belongs_release(cpv, release):
23 - "Check if the given cpv belongs to the given release"
24 + """Check if `cpv` belongs to the release `release`."""
25 # FIXME: This failure function needs better logic
26 if CHECK_DEPS:
27 raise Exception('This function is utterly useless with RECURSIVE mode')
28 - return get_ver(cpv).startswith(release)
29 + return portage.versions.cpv_getversion(cpv).startswith(release)
30
31
32 def issystempackage(cpv):