wok diff slitaz-loram-cdrom/receipt @ 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 b3b7d8187bd1
children 80bb089358ea
line diff
     1.1 --- a/slitaz-loram-cdrom/receipt	Sat Mar 08 16:39:00 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.