aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStanislav Ochotnicky <sochotnicky@gmail.com>2009-08-01 11:26:20 +0200
committerStanislav Ochotnicky <sochotnicky@gmail.com>2009-08-01 11:26:20 +0200
commit0ba945d6be4f5084f4f8e72a0f84f811961306f8 (patch)
tree7a798de46868216cc828bfaf67a4c9d7e903804b /src
parentFixed normalize_dependencies (diff)
downloadcollagen-0ba945d6be4f5084f4f8e72a0f84f811961306f8.tar.gz
collagen-0ba945d6be4f5084f4f8e72a0f84f811961306f8.tar.bz2
collagen-0ba945d6be4f5084f4f8e72a0f84f811961306f8.zip
Added check for architecture before emerge
fixes bug #20
Diffstat (limited to 'src')
-rw-r--r--src/tinderbox/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tinderbox/__init__.py b/src/tinderbox/__init__.py
index 4358897..6829b03 100644
--- a/src/tinderbox/__init__.py
+++ b/src/tinderbox/__init__.py
@@ -84,6 +84,11 @@ class Tinderbox(object):
for pkg in allversions:
ebuild = portdb.findname(pkg)
+ archs = portdb.aux_get(pkg, ["KEYWORDS"])[0]
+ archs = archs.split()
+ if settings["ARCH"] not in archs and "~%s" % settings["ARCH"] not in archs:
+ log.warning("Was asked to compile %s but it doesn't have our arch in KEYWORDS" % pkg)
+ continue
deps = portdb.aux_get(pkg,["DEPEND"])
deps = portage.dep.paren_reduce(deps[0])