From 19044e7c148d10a58c47476582925fbab10b574b Mon Sep 17 00:00:00 2001 From: "Pawel Hajdan, Jr" Date: Thu, 1 Dec 2011 19:47:26 +0100 Subject: Check KEYWORDS for all requested arches. --- stabilization-candidates.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/stabilization-candidates.py b/stabilization-candidates.py index d2e539c..44cbe75 100755 --- a/stabilization-candidates.py +++ b/stabilization-candidates.py @@ -102,6 +102,15 @@ if __name__ == "__main__": if now - changelog_date < datetime.timedelta(days=options.days): continue + keywords = portage.db["/"]["porttree"].dbapi.aux_get(best_candidate, ['KEYWORDS'])[0] + missing_arch = False + for arch in options.arch: + if arch not in keywords: + missing_arch = True + break + if missing_arch: + continue + cvs_path = os.path.join(options.repo, cp) ebuild_name = portage.versions.catsplit(best_candidate)[1] + ".ebuild" ebuild_path = os.path.join(cvs_path, ebuild_name) -- cgit v1.2.3-65-gdbad