wok-next rev 13710

get-OpenOffice3: small fixes
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Dec 17 20:32:43 2012 +0100 (2012-12-17)
parents bdd39c3e98d5
children c99337ad315c
files get-OpenOffice3/stuff/get-OpenOffice3
line diff
     1.1 --- a/get-OpenOffice3/stuff/get-OpenOffice3	Mon Dec 17 14:02:00 2012 +0000
     1.2 +++ b/get-OpenOffice3/stuff/get-OpenOffice3	Mon Dec 17 20:32:43 2012 +0100
     1.3 @@ -28,8 +28,8 @@
     1.4  		grep -E ">$LANG/|>${LANG/_/-}/|>${LANG%_*}/" | \
     1.5  		head -1 | sed 's/.*href=\"\(.*\)\/\".*/\1/')
     1.6  	[ -n "$LOC" ] && DIR="localized/$LOC"
     1.7 -	VERSION="$(basename $(wget -O - $MIRROR/$DIR/ 2> /dev/null | \
     1.8 -		grep href=\"[0-9] | tail -1 | sed 's/.*href=\"\(.*\)\".*/\1/'))"
     1.9 +	VERSION="$(basename $(wget -O - $MIRROR/$DIR/ 2> /dev/null | grep \
    1.10 +	href=\"[0-9] | tail -1 | sed 's/.*href=\"\(.*\)\".*/\1/') 2> /dev/null)"
    1.11  	[ -n "$VERSION" ] && break
    1.12  done
    1.13  
    1.14 @@ -210,7 +210,7 @@
    1.15  		$1/receipt
    1.16  	cp $1/receipt $ROOT/var/lib/tazpkg/installed/$PACKAGE
    1.17  	echo "Compute md5sum..."
    1.18 -	find fs -type f | xargs md5sum | sed 's|  fs/|  /|' >
    1.19 +	find fs -type f | xargs md5sum | sed 's|  fs/|  /|' > \
    1.20  		$ROOT/var/lib/tazpkg/installed/$PACKAGE/md5sum
    1.21  	echo "Move files..."
    1.22  	( cd $1/fs ; find ) | while read file ; do