stage1-controller.sh: Remove some old poor cleaning code
authorBrian Dolbec <dolsen@gentoo.org>
Tue, 26 Aug 2014 01:31:00 +0000 (18:31 -0700)
committerBrian Dolbec <dolsen@gentoo.org>
Tue, 2 Sep 2014 05:43:13 +0000 (22:43 -0700)
This code had portage bin path hard coded.  That path needed to be
changed for a new portage ebuild and install system.
After testing the origianl code and comparing it with some updated code
supplied by Douglas Freed.  It turned out both code chunks resulted in
nothing being cleaned.

Tested-by: Rick Zero_Chaos Farina <zerochaos@gentoo.org>
targets/stage1/stage1-controller.sh

index 8dbd16b05593ff637fd0ab493ed95c7d7f6fa071..d029545e5deb48aa16b447e22c9e91ab30750711 100755 (executable)
@@ -31,11 +31,6 @@ case $1 in
                rm -rf usr/share/{man,doc,info}/*
                # Zap all .pyc and .pyo files
                find . -iname "*.py[co]" -exec rm -f {} \;
-               # Cleanup all .a files except libgcc.a, *_nonshared.a and
-               # /usr/lib/portage/bin/*.a
-               find . -type f -iname "*.a" | grep -v 'libgcc.a' | \
-                       grep -v 'nonshared.a' | grep -v '/usr/lib/portage/bin/' | \
-                       grep -v 'libgcc_eh.a' | xargs rm -f
        ;;
 
        *)