commit: 6874bc12f7b9ac0478d2778227939fa7a26f3443
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 8 10:32:27 2015 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed Jul 8 10:32:27 2015 +0000
URL: https://gitweb.gentoo.org/proj/grs.git/commit/?id=6874bc12
scripts/cycle.1.py: clean out zoneinfo.
scripts/cycle.1.py | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/scripts/cycle.1.py b/scripts/cycle.1.py
index 92e8881..1de575f 100644
--- a/scripts/cycle.1.py
+++ b/scripts/cycle.1.py
@@ -45,9 +45,6 @@ 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)
+for d in ['info', 'doc', 'man', 'zoneinfo']:
+ cmd = 'find /tmp/stage1root/usr/share -type d -iname %s -exec rm -rf {} +'
% d
+ Execute(cmd, timeout=None, extra_env=emerge_env)