aboutsummaryrefslogtreecommitdiff
path: root/tatt
diff options
context:
space:
mode:
authorThomas Kahle <tomka@gentoo.org>2012-10-14 17:44:09 -0700
committerThomas Kahle <tomka@gentoo.org>2012-10-14 17:44:09 -0700
commit4b27eba8d98eebf66c0fc3dcbc9e87edf7b3d655 (patch)
tree751f427d946b24a5a7a9b719293cf3dbecc53fd1 /tatt
parentdon't check for root (diff)
downloadtatt-4b27eba8d98eebf66c0fc3dcbc9e87edf7b3d655.tar.gz
tatt-4b27eba8d98eebf66c0fc3dcbc9e87edf7b3d655.tar.bz2
tatt-4b27eba8d98eebf66c0fc3dcbc9e87edf7b3d655.zip
Make emerge options configurable via emergeopts
Diffstat (limited to 'tatt')
-rw-r--r--tatt/dot-tatt-spec1
-rw-r--r--tatt/scriptwriter.py4
2 files changed, 4 insertions, 1 deletions
diff --git a/tatt/dot-tatt-spec b/tatt/dot-tatt-spec
index ae7a989..59bc392 100644
--- a/tatt/dot-tatt-spec
+++ b/tatt/dot-tatt-spec
@@ -5,6 +5,7 @@ template-dir=string(default="/usr/share/tatt/templates/")
unmaskfile=string(default="/etc/portage/package.keywords/archtest")
arch=string(default="x86")
defaultopts=string(default="")
+emergeopts=string(default="")
rdeps=integer(0,50,default=10)
usecombis=integer(0,64,default=12)
repodir=string(default="")
diff --git a/tatt/scriptwriter.py b/tatt/scriptwriter.py
index 0aa0a4f..bf88aa6 100644
--- a/tatt/scriptwriter.py
+++ b/tatt/scriptwriter.py
@@ -19,13 +19,14 @@ def useCombiTestString(pack, config):
s = "" # This will contain the resulting string
usesnippet = usesnippetfile.read()
usesnippet = usesnippet.replace("@@CPV@@", pack.packageString() )
+ usesnippet = usesnippet.replace("@@EMERGEOPTS@@", config['emergeopts'])
usecombis = findUseFlagCombis (pack, config)
for uc in usecombis:
localsnippet = usesnippet.replace("@@USE@@", uc)
localsnippet = localsnippet.replace("@@FEATURES@@", "")
s = s + localsnippet
# In the end we test once with tests and users flags
- localsnippet = usesnippet.replace("@@USE@@", " ")
+ localsnippet = usesnippet.replace("@@USE@@", "")
localsnippet = localsnippet.replace("@@FEATURES@@", "FEATURES=\"${FEATURES} test\"")
s = s + localsnippet
return s
@@ -65,6 +66,7 @@ def rdepTestString(rdep, config):
ustring = ustring + " ".join(["-" + st[1:] for st in rdep[1] if st[0] == "!"]) + "\'"
snip = snip.replace("@@USE@@", ustring)
snip = snip.replace("@@CPV@@", rdep[0] )
+ snip = snip.replace("@@EMERGEOPTS@@", config['emergeopts'])
return snip
def writerdepscript(job, config):