summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-01-08 03:13:30 +0000
committerMike Fulbright <msf@redhat.com>2003-01-08 03:13:30 +0000
commit36b73f1cfc4ca85e2a886d80dfca6e331e7fa55e (patch)
treef4c1de84d56e2db4aa8597650f6f3f5eded6c06d
parentf7341973f26a29694caf40242513e9ce3ee32c0f (diff)
clean up unneeded .py files
-rwxr-xr-xscripts/upd-instroot9
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