aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2015-07-07 08:37:49 -0400
committerAnthony G. Basile <blueness@gentoo.org>2015-07-07 08:37:49 -0400
commit486a87b4a369d3b7ef36b18dd1733b4d5e312eff (patch)
tree1395bc84c0ef2ddedd18a52a1667147e2410c26c /scripts/cycle.1.py
parentworld.conf: switch to new format. (diff)
downloadgrs-486a87b4a369d3b7ef36b18dd1733b4d5e312eff.tar.gz
grs-486a87b4a369d3b7ef36b18dd1733b4d5e312eff.tar.bz2
grs-486a87b4a369d3b7ef36b18dd1733b4d5e312eff.zip
Testing stage1 build.
Diffstat (limited to 'scripts/cycle.1.py')
-rw-r--r--scripts/cycle.1.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/cycle.1.py b/scripts/cycle.1.py
new file mode 100644
index 0000000..098da43
--- /dev/null
+++ b/scripts/cycle.1.py
@@ -0,0 +1,11 @@
+#!/bin/bash -e
+
+from portage import settings
+from grs.Execute import Execute
+
+use_flags = '-* bindist build %s' % settings['BOOTSTRAP_USE']
+subchroot = '/tmp/stage1root'
+cpu_flags = 'mmx sse sse2'
+emerge_env = { 'USE' : use_flags, 'ROOT' : subchroot, 'CPU_FLAGS_X86' : cpu_flags }
+cmd = 'emerge -bkNu1q sys-apps/baselayout'
+Execute(cmd, timeout=600, extra_env=emerge_env)