aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2015-07-07 21:42:02 -0400
committerAnthony G. Basile <blueness@gentoo.org>2015-07-07 21:42:02 -0400
commit39880f92fc9aac1e2221f1ec2c8c2db8fa7bba47 (patch)
tree8d9e8fbded69e6cd19d8b801f6680008d2dd8693 /scripts/cycle.1.py
parentTesting new tarit grammar. (diff)
downloadgrs-39880f92fc9aac1e2221f1ec2c8c2db8fa7bba47.tar.gz
grs-39880f92fc9aac1e2221f1ec2c8c2db8fa7bba47.tar.bz2
grs-39880f92fc9aac1e2221f1ec2c8c2db8fa7bba47.zip
scripts/cycle.1.py: copy make.conf to stage1root and cleanup docs.
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
index 6e3211a..1593f74 100644
--- a/scripts/cycle.1.py
+++ b/scripts/cycle.1.py
@@ -2,6 +2,7 @@
import os
import re
+import shutil
import portage
from grs.Execute import Execute
@@ -38,5 +39,15 @@ emerge_env = { 'USE' : use_flags, 'ROOT' : subchroot, 'CPU_FLAGS_X86' : cpu_flag
cmd = 'emerge -bkNu1q sys-apps/baselayout'
Execute(cmd, timeout=None, extra_env=emerge_env)
+os.path.makedirs('/tmp/stage1root/etc/portage', mode=0o755, exist_ok=True)
+shutil.copy('/etc/portage/make.conf', '/tmp/stage1root/etc/portage')
+
cmd = 'emerge -bkNu1q %s' % get_blist()
Execute(cmd, timeout=None, extra_env=emerge_env)
+
+cmd = 'find /tmp/stage1root/usr/share -type d -iname info -exec rm -rf {} +'
+Execute(cmd, timeout=None, extra_env=emerge_env)
+cmd = 'find /tmp/stage1root/usr/share -type d -iname doc -exec rm -rf {} +'
+Execute(cmd, timeout=None, extra_env=emerge_env)
+cmd = 'find /tmp/stage1root/usr/share -type d -iname man -exec rm -rf {} +'
+Execute(cmd, timeout=None, extra_env=emerge_env)