summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2015-06-24 14:07:39 +0200
committerGilles Dartiguelongue <eva@gentoo.org>2015-06-25 14:46:09 +0200
commit9e2189f5a6efd3c0ab7d1f386f532d3d42b18734 (patch)
tree738dbde121dabd58620c72155bd1e341b4b7dfc4
parentscripts/gen_archlist: simplify functions and try to enhance documentation (diff)
downloadgnome-9e2189f5a6efd3c0ab7d1f386f532d3d42b18734.tar.gz
gnome-9e2189f5a6efd3c0ab7d1f386f532d3d42b18734.tar.bz2
gnome-9e2189f5a6efd3c0ab7d1f386f532d3d42b18734.zip
scripts/gen_archlist: fix belongs_release
get_ver is undefined, I wonder how this could ever work.
-rwxr-xr-xscripts/gen_archlist.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/gen_archlist.py b/scripts/gen_archlist.py
index 3ac9f88a..9a74d21c 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):