diff options
author | Sebastian Parborg <darkdefende@gmail.com> | 2011-06-13 23:30:54 +0200 |
---|---|---|
committer | Sebastian Parborg <darkdefende@gmail.com> | 2011-06-13 23:30:54 +0200 |
commit | 77ec701262d7b8907044abbd84275ef085b34a9d (patch) | |
tree | 03eae8e019eae187f8dd7ff25132cd7a0ca24d67 | |
parent | Added basic ebuild output (diff) | |
download | ebuildgen-77ec701262d7b8907044abbd84275ef085b34a9d.tar.gz ebuildgen-77ec701262d7b8907044abbd84275ef085b34a9d.tar.bz2 ebuildgen-77ec701262d7b8907044abbd84275ef085b34a9d.zip |
Added ARCH detection
-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: |