aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2015-07-08 06:32:27 -0400
committerAnthony G. Basile <blueness@gentoo.org>2015-07-08 06:32:27 -0400
commit6874bc12f7b9ac0478d2778227939fa7a26f3443 (patch)
tree96af982492fa9f360668d0b59fba81c916565444 /scripts
parentscripts/cycle.1.py: fix typo. (diff)
downloadgrs-6874bc12f7b9ac0478d2778227939fa7a26f3443.tar.gz
grs-6874bc12f7b9ac0478d2778227939fa7a26f3443.tar.bz2
grs-6874bc12f7b9ac0478d2778227939fa7a26f3443.zip
scripts/cycle.1.py: clean out zoneinfo.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cycle.1.py9
1 files 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)