diff options
| author | Mike Fulbright <msf@redhat.com> | 2003-01-08 03:13:30 +0000 |
|---|---|---|
| committer | Mike Fulbright <msf@redhat.com> | 2003-01-08 03:13:30 +0000 |
| commit | 36b73f1cfc4ca85e2a886d80dfca6e331e7fa55e (patch) | |
| tree | f4c1de84d56e2db4aa8597650f6f3f5eded6c06d | |
| parent | f7341973f26a29694caf40242513e9ce3ee32c0f (diff) | |
clean up unneeded .py files
| -rwxr-xr-x | scripts/upd-instroot | 9 |
1 files changed, 8 insertions, 1 deletions
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 |
