From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RWBfs-0000pw-Fj for garchives@archives.gentoo.org; Thu, 01 Dec 2011 18:48:00 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6DA2521C025; Thu, 1 Dec 2011 18:47:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 3CFCA21C025 for ; Thu, 1 Dec 2011 18:47:52 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 934581B4021 for ; Thu, 1 Dec 2011 18:47:51 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 94DA28004F for ; Thu, 1 Dec 2011 18:47:50 +0000 (UTC) From: "Paweł Hajdan" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Paweł Hajdan" Message-ID: <19044e7c148d10a58c47476582925fbab10b574b.phajdan.jr@gentoo> Subject: [gentoo-commits] proj/arch-tools:master commit in: / X-VCS-Repository: proj/arch-tools X-VCS-Files: stabilization-candidates.py X-VCS-Directories: / X-VCS-Committer: phajdan.jr X-VCS-Committer-Name: Paweł Hajdan X-VCS-Revision: 19044e7c148d10a58c47476582925fbab10b574b Date: Thu, 1 Dec 2011 18:47:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 1322f27c-01a4-4782-a3bf-128803b70706 X-Archives-Hash: ea0c2cdfe5f919d4741ceda18381e4f4 commit: 19044e7c148d10a58c47476582925fbab10b574b Author: Pawel Hajdan, Jr gentoo org> AuthorDate: Thu Dec 1 18:47:26 2011 +0000 Commit: Pawe=C5=82 Hajdan gentoo org> CommitDate: Thu Dec 1 18:47:26 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/arch-tools.gi= t;a=3Dcommit;h=3D19044e7c Check KEYWORDS for all requested arches. --- stabilization-candidates.py | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) 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__ =3D=3D "__main__": if now - changelog_date < datetime.timedelta(days=3Doptions.days): continue =20 + keywords =3D portage.db["/"]["porttree"].dbapi.aux_get(best_candidate,= ['KEYWORDS'])[0] + missing_arch =3D False + for arch in options.arch: + if arch not in keywords: + missing_arch =3D True + break + if missing_arch: + continue + cvs_path =3D os.path.join(options.repo, cp) ebuild_name =3D portage.versions.catsplit(best_candidate)[1] + ".ebuil= d" ebuild_path =3D os.path.join(cvs_path, ebuild_name)