Re: anaconda-11.3.0.50 upd-instroot

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

 



Howard Wilkinson wrote:
I am getting an error from the sed string in the code below. Can anybody enlighten me as to what is trying to be achieved?

   cat $KEEPFILES | while read spec ; do
     #Pull off path
path=`echo "$spec" | sed 's,\([^[*\?]*\)/.*,\1,'` <------ sed: -e expression #1, char 8: unknown option to `s'
     for filespec in `find ./$path -path "./$spec"` ; do
       if [ ! -e $filespec ]; then
           continue
       elif [ ! -d $filespec ]; then
           instFile $filespec $PKGDEST
       else
for i in `find $filespec -type f` ; do instFile $i $PKGDEST ; done
       fi
     done
   done


Actually it isn't that line (judging from what sed complains about - what is passed to 'sed -e')

Attached is a patch that will make the message go away.

Kind regards,

Jeroen van Meeuwen
-kanarip
commit cfe599d085167a9225e5eac87774373b8b57597c
Author: Jeroen van Meeuwen (Fedora Unity) <kanarip@xxxxxxxxxxxxxxx>
Date:   Fri Aug 15 16:17:58 2008 +0200

    Fix sed invocation

diff --git a/scripts/upd-instroot b/scripts/upd-instroot
index 5400052..c610d7e 100755
--- a/scripts/upd-instroot
+++ b/scripts/upd-instroot
@@ -56,7 +56,8 @@ get_dso_deps() {
         for ldso in /lib*/ld*.so* ; do
             [ -x $ldso ] || continue
             $ldso --verify $bin >/dev/null 2>&1 || continue
-            LDSO=$(echo $ldso |sed -e "s/$root//")
+            expr="s|$root||"
+            LDSO=$(echo $ldso |sed -e $expr)
             break
         done
     fi
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[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