Gentoo Archives: gentoo-catalyst

From: Brian Dolbec <dolsen@g.o>
To: gentoo-catalyst@l.g.o
Subject: Re: [gentoo-catalyst] [PATCH v2 3/7] stage1-controller.sh: Remove some old poor cleaning code
Date: Tue, 02 Sep 2014 05:20:59
Message-Id: 20140901221933.3fdc67f0.dolsen@gentoo.org
In Reply to: [gentoo-catalyst] [PATCH v2] stage1-controller.sh: Remove some old poor cleaning code by Brian Dolbec
1 On Mon, 1 Sep 2014 22:05:45 -0700
2 Brian Dolbec <dolsen@g.o> wrote:
3
4 This code had portage bin path hard coded. That path needed to be
5 changed for a new portage ebuild and install system.
6 After testing the origianl code and comparing it with some updated
7 code supplied by Douglas Freed. It turned out both code chunks
8 resulted in nothing being cleaned.
9
10 Tested and confirmed by zero_chaos.
11 ---
12 targets/stage1/stage1-controller.sh | 5 -----
13 1 file changed, 5 deletions(-)
14
15 diff --git a/targets/stage1/stage1-controller.sh
16 b/targets/stage1/stage1-controller.sh index 8dbd16b..d029545 100755
17 --- a/targets/stage1/stage1-controller.sh
18 +++ b/targets/stage1/stage1-controller.sh
19 @@ -31,11 +31,6 @@ case $1 in
20 rm -rf usr/share/{man,doc,info}/*
21 # Zap all .pyc and .pyo files
22 find . -iname "*.py[co]" -exec rm -f {} \;
23 - # Cleanup all .a files except libgcc.a, *_nonshared.a and
24 - # /usr/lib/portage/bin/*.a
25 - find . -type f -iname "*.a" | grep -v 'libgcc.a' | \
26 - grep -v 'nonshared.a' | grep -v '/usr/lib/portage/bin/' | \
27 - grep -v 'libgcc_eh.a' | xargs rm -f
28 ;;
29
30 *)
31
32
33
34 --
35 Brian Dolbec <dolsen>