diff options
-rwxr-xr-x | 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__ == "__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) |