1 |
commit: 19044e7c148d10a58c47476582925fbab10b574b |
2 |
Author: Pawel Hajdan, Jr <phajdan.jr <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 1 18:47:26 2011 +0000 |
4 |
Commit: Paweł Hajdan <phajdan.jr <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 1 18:47:26 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/arch-tools.git;a=commit;h=19044e7c |
7 |
|
8 |
Check KEYWORDS for all requested arches. |
9 |
|
10 |
--- |
11 |
stabilization-candidates.py | 9 +++++++++ |
12 |
1 files changed, 9 insertions(+), 0 deletions(-) |
13 |
|
14 |
diff --git a/stabilization-candidates.py b/stabilization-candidates.py |
15 |
index d2e539c..44cbe75 100755 |
16 |
--- a/stabilization-candidates.py |
17 |
+++ b/stabilization-candidates.py |
18 |
@@ -102,6 +102,15 @@ if __name__ == "__main__": |
19 |
if now - changelog_date < datetime.timedelta(days=options.days): |
20 |
continue |
21 |
|
22 |
+ keywords = portage.db["/"]["porttree"].dbapi.aux_get(best_candidate, ['KEYWORDS'])[0] |
23 |
+ missing_arch = False |
24 |
+ for arch in options.arch: |
25 |
+ if arch not in keywords: |
26 |
+ missing_arch = True |
27 |
+ break |
28 |
+ if missing_arch: |
29 |
+ continue |
30 |
+ |
31 |
cvs_path = os.path.join(options.repo, cp) |
32 |
ebuild_name = portage.versions.catsplit(best_candidate)[1] + ".ebuild" |
33 |
ebuild_path = os.path.join(cvs_path, ebuild_name) |