From 36b73f1cfc4ca85e2a886d80dfca6e331e7fa55e Mon Sep 17 00:00:00 2001 From: Mike Fulbright Date: Wed, 8 Jan 2003 03:13:30 +0000 Subject: clean up unneeded .py files --- scripts/upd-instroot | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/upd-instroot b/scripts/upd-instroot index 3fd13ca07..f4a5307f2 100755 --- a/scripts/upd-instroot +++ b/scripts/upd-instroot @@ -1010,7 +1010,14 @@ done # this is only for the minimal second stage echo "Cleaning ramdisk install images..." - rm -rf $DEST/usr/lib/anaconda-runtime +rm -rf $DEST/usr/lib/anaconda-runtime + +# remove *.py in /usr/lib/anaconda since we compile everything +find $DESTGR/usr/lib/anaconda/ -name "*.py" | while read fn; do + if [ -f ${fn}c ]; then + rm -f $fn +done + if [ "$ARCH" != "s390" -a "$ARCH" != "s390x" ]; then if [ $NEEDGR ]; then -- cgit