tazpkg diff modules/install @ rev 976
misc typos
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Nov 09 12:03:43 2021 +0000 (2021-11-09) |
parents | f079c87ba419 |
children |
line diff
1.1 --- a/modules/install Mon Nov 26 18:53:08 2018 +0200 1.2 +++ b/modules/install Tue Nov 09 12:03:43 2021 +0000 1.3 @@ -27,7 +27,7 @@ 1.4 1.5 local extra 1.6 1.7 - [ "$1" == 'Installed' ] && \ 1.8 + [ "$1" = 'Installed' ] && \ 1.9 extra=" - $(fgrep " $PACKAGE-$VERSION" "$PKGS_DB/installed.$SUM" | awk '{print $1}')" 1.10 debug " extra='$extra'" 1.11 1.12 @@ -150,7 +150,7 @@ 1.13 "$num")" 1.14 1.15 1.16 - if [ "$AUTO_INSTALL_DEPS" == 'yes' ] || [ -n "$quiet" ]; then 1.17 + if [ "$AUTO_INSTALL_DEPS" = 'yes' ] || [ -n "$quiet" ]; then 1.18 # Quietly not displaying anything. Assume 'yes' unless '--noconfirm' is provided 1.19 answer=0 1.20 [ -n "$noconfirm" ] && answer=1 1.21 @@ -168,7 +168,7 @@ 1.22 1.23 # We can install packages from /home/boot/packages at boot time 1.24 # Also we can prefer local packages over mirrored/cached using '--local' option 1.25 - [ "$dir" == '/home/boot/packages' ] && local='yes' 1.26 + [ "$dir" = '/home/boot/packages' ] && local='yes' 1.27 debug " local='$local'" 1.28 1.29 # "--nodeps" option prevents to install dependencies 1.30 @@ -219,7 +219,7 @@ 1.31 # Extract receipt from each matched package 1.32 cpio -F "$pkgfile" -i receipt >/dev/null 2>&1 1.33 name=$(. ./receipt; echo $PACKAGE) 1.34 - [ "$name" == "$pkg" ] && found='1' && break 1.35 + [ "$name" = "$pkg" ] && found='1' && break 1.36 # Install the first matched package: normally there is only one package 1.37 # with the $PACKAGE matched in the receipt 1.38 rm receipt 1.39 @@ -399,7 +399,7 @@ 1.40 # Special mode for using in cookutils: clearly show whether freshly used package or cached one 1.41 if [ -n "$cookmode" ]; then 1.42 f=${PACKAGE_FILE%/*}; f=${f%/*}; f=${f##*/} 1.43 - if [ "$f" == "$(cat /etc/slitaz-release)" ]; then 1.44 + if [ "$f" = "$(cat /etc/slitaz-release)" ]; then 1.45 _ 'Installing (web/cache): %s' "$(basename $PACKAGE_FILE .tazpkg)" 1.46 else 1.47 _ 'Installing (pkg/local): %s' "$(basename $PACKAGE_FILE .tazpkg)" 1.48 @@ -460,7 +460,7 @@ 1.49 done ; 1.50 $check && \ 1.51 for i in *; do 1.52 - [ "$i" == "$PACKAGE" ] && continue 1.53 + [ "$i" = "$PACKAGE" ] && continue 1.54 [ -s "$i/files.list" ] || continue 1.55 awk "{ printf \"$i %s\\n\",\$1 }" < "$i/files.list" 1.56 done;