Re: More upd-instroot speedups

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jeremy Katz wrote:
Okay, given where we are as far as freezes and such, I'm being a little
selective in application for now.
On Tue, 2007-10-09 at 16:00 -0600, Orion Poplawski wrote:
anaconda-find.patch:

Applied this

This has some problems. Instead, let's just apply the attached. The extra tests doesn't seem to provide much speedup, and definitely breaks some cases (symbolic links in particular).



--
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion@xxxxxxxxxxxxx
Boulder, CO 80301              http://www.cora.nwra.com
--- anaconda-11.3.0.37/scripts/upd-instroot.findpath	2007-10-10 10:14:51.000000000 -0600
+++ anaconda-11.3.0.37/scripts/upd-instroot	2007-10-10 10:15:27.000000000 -0600
@@ -187,7 +187,9 @@
     echo `date` "Installing files"
     pushd $YUMDIR >/dev/null
     cat $KEEPFILES | while read spec ; do
-      for filespec in `find . -path "./$spec"` ; do
+      #Pull off path
+      path=`echo "$spec" | sed 's,\([^[*\?]*\)/.*,\1,'`
+      for filespec in `find ./$path -path "./$spec"` ; do
 	if [ ! -e $filespec ]; then
 	    continue
 	elif [ ! -d $filespec ]; then

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux