commit:     39880f92fc9aac1e2221f1ec2c8c2db8fa7bba47
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Wed Jul  8 01:42:02 2015 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed Jul  8 01:42:02 2015 +0000
URL:        https://gitweb.gentoo.org/proj/grs.git/commit/?id=39880f92

scripts/cycle.1.py: copy make.conf to stage1root and cleanup docs.

 scripts/cycle.1.py | 11 +++++++++++
 1 file changed, 11 insertions(+)

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)

Reply via email to