summaryrefslogtreecommitdiffstats
path: root/scripts/upd-instroot
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-07-13 07:29:06 +0000
committerMatt Wilson <msw@redhat.com>2000-07-13 07:29:06 +0000
commitee53bd6a227e8c45015cd2d830da923c1f97cd32 (patch)
tree25c16c3537c205919465ae7b289b513c3ccba15e /scripts/upd-instroot
parentcdcebb5192a31af9ac8303f97b6125f6d0ab829f (diff)
downloadanaconda-ee53bd6a227e8c45015cd2d830da923c1f97cd32.tar.gz
anaconda-ee53bd6a227e8c45015cd2d830da923c1f97cd32.tar.xz
anaconda-ee53bd6a227e8c45015cd2d830da923c1f97cd32.zip
speed up load by not nuking all the .pyc files
Diffstat (limited to 'scripts/upd-instroot')
-rwxr-xr-xscripts/upd-instroot8
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/upd-instroot b/scripts/upd-instroot
index d78961d9c..0d63fe58b 100755
--- a/scripts/upd-instroot
+++ b/scripts/upd-instroot
@@ -585,13 +585,9 @@ echo "done."
for p in $DEST $DESTGR; do
find $p -name "*.py" | while read fn; do
- if [ -f ${fn}c ]; then
- rm -f ${fn}c
- fi
- if [ -f ${fn}o ]; then
- rm -f ${fn}o
- fi
+ rm -f ${fn}o
if [ $p = $DEST ]; then
+ rm -f ${fn}c
ln -sf /dev/null ${fn}c
fi
done