diff --git a/scripts/Create-CkSumPatch b/scripts/Create-CkSumPatch index 88010f6cb..73b980a79 100755 --- a/scripts/Create-CkSumPatch +++ b/scripts/Create-CkSumPatch @@ -54,7 +54,7 @@ while read cksum gzfile ; do checkthis=1 xfile="`basename $gzfile`" - descfile="`grep $xfile package/*/*/*.desc target/*/download.txt scripts/miscdown.txt | sed 's,:.*,,'`" + descfile="`grep $xfile package/*/*/*.desc target/*/download.txt | sed 's,:.*,,'`" rep="`echo $descfile | cut -f2 -d/`" pkg="`echo $descfile | cut -f3 -d/`" @@ -79,7 +79,7 @@ while read cksum gzfile ; do if [ -d package/$rep ] ; then if [ -f $descfile ] ; then sedscript="s,\[D\] *00* *$xfile,[D] $cksum $xfile," - sed "$sedscript" < $descfile > /tmp/$$ + sed "$sedscript" -i /tmp/$$ if cmp -s ./$descfile /tmp/$$ ; then echo "!!! SED script didn't change anything:" >&2 echo "!!! $sedscript" >&2