wok-stable rev 380
Slitaz-loram*: fix pre_install.
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 08 20:27:10 2008 +0100 (2008-03-08) |
parents | 4cd339cfc50e |
children | 7c9bc7c099fe |
files | slitaz-loram-cdrom/receipt slitaz-loram/receipt |
line diff
1.1 --- a/slitaz-loram-cdrom/receipt Sat Mar 08 18:02:43 2008 +0100 1.2 +++ b/slitaz-loram-cdrom/receipt Sat Mar 08 20:27:10 2008 +0100 1.3 @@ -67,16 +67,16 @@ 1.4 # Pre and post install commands for Tazpkg. 1.5 pre_install() 1.6 { 1.7 - local $loram 1.8 - loram=$(cd /var/lib/tazpkg/installed ; ls -d slitaz-loram* 2> /dev/null) 1.9 - [ -n "$loram" -a "$loram" != "$PACKAGE" ] && yes y | tazpkg remove $loram 1.10 + local i 1.11 + for i in $(cd /var/lib/tazpkg/installed ; ls -d slitaz-loram* 2> /dev/null); do 1.12 + [ "$i" = "$PACKAGE" ] && continue 1.13 + yes y | tazpkg remove $i 1.14 + done 1.15 } 1.16 1.17 post_install() 1.18 { 1.19 - local root 1.20 - root=$1 1.21 - set_patch "$root" 1.22 + set_patch "$1" 1.23 if [ ! -x /bin/funionfs ]; then 1.24 cat <<EOF 1.25 You will build a live CD with /usr mounted read-only.
2.1 --- a/slitaz-loram/receipt Sat Mar 08 18:02:43 2008 +0100 2.2 +++ b/slitaz-loram/receipt Sat Mar 08 20:27:10 2008 +0100 2.3 @@ -57,16 +57,16 @@ 2.4 # Pre and post install commands for Tazpkg. 2.5 pre_install() 2.6 { 2.7 - local $loram 2.8 - loram=$(cd /var/lib/tazpkg/installed ; ls -d slitaz-loram* 2> /dev/null) 2.9 - [ -n "$loram" -a "$loram" != "$PACKAGE" ] && yes y | tazpkg remove $loram 2.10 + local i 2.11 + for i in $(cd /var/lib/tazpkg/installed ; ls -d slitaz-loram* 2> /dev/null); do 2.12 + [ "$i" = "$PACKAGE" ] && continue 2.13 + yes y | tazpkg remove $i 2.14 + done 2.15 } 2.16 2.17 post_install() 2.18 { 2.19 - local root 2.20 - root=$1 2.21 - set_patch "$root" 2.22 + set_patch "$1" 2.23 if [ ! -x /bin/funionfs ]; then 2.24 cat <<EOF 2.25 You will build a live CD with /usr mounted read-only.