diff options
-rw-r--r-- | ebuildgen.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ebuildgen.py b/ebuildgen.py index 26a9d87..773efc3 100644 --- a/ebuildgen.py +++ b/ebuildgen.py @@ -1,4 +1,5 @@ from time import strftime +from subprocess import getstatusoutput eclass = { "git" : "git", @@ -6,6 +7,8 @@ eclass = { "hg" : "mercurial", } +arch = getstatusoutput("portageq envvar ARCH")[1] + def genebuild(iuse,deps,dltype,adress,targets,binaries): installmethod = guessinstall(targets,binaries) outstr = outputebuild(iuse,deps,dltype,adress,installmethod) @@ -54,7 +57,7 @@ def outputebuild(iuse,deps,dltype,adress,installmethod): '', 'LICENSE=""', 'SLOT="0"', - 'KEYWORDS=""' + 'KEYWORDS="~' + arch + '"' ] iusestr = 'IUSE="' for flag in iuse: |