Author: jw Date: 2006-03-28 18:01:14 +0200 (Tue, 28 Mar 2006) New Revision: 1050 Modified: crux-2.2/iso/bin/setup-helper Log: improve output of setup-helper Modified: crux-2.2/iso/bin/setup-helper =================================================================== --- crux-2.2/iso/bin/setup-helper 2006-03-28 15:54:49 UTC (rev 1049) +++ crux-2.2/iso/bin/setup-helper 2006-03-28 16:01:14 UTC (rev 1050) @@ -14,8 +14,6 @@ MV="mv" rename_packages() { - echo "* Packages renamed: " - if [ -z "$1" ]; then return fi @@ -26,7 +24,7 @@ for tuple in $@; do split=($(echo $tuple|sed -e 's|:| |')) if [ -n "${split[1]}" ] && [ `pkginfo -r $ROOT -i|gawk '{ print $1; }'|grep ^${split[0]}$` ]; then - echo " ${split[0]} -> ${split[1]}" + echo "renamed: ${split[0]} -> ${split[1]}" filter="$filter -e 's|^${split[0]}$|${split[1]}|'" runfilter="yes" fi @@ -57,20 +55,18 @@ remove_packages() { - echo "* Packages removed (obsolete):" for package in $@; do if [ `pkginfo -r $ROOT -i|gawk '{ print $1; }'|grep ^$package$` ]; then - echo " $package" + echo "removed: $package" $PKGRM -r $ROOT $package fi done } inject_packages() { - echo "* Packages injected:" for package in $@; do if [ -z "`pkginfo -r $ROOT -i|gawk '{ print $1; }'|grep ^$package$`" ]; then - echo " $package" + echo "injected: $package" pkg="`find core opt -name \"${package}#*.pkg.tar.gz\" &2> /dev/null`" if [ -n "$pkg" ]; then $PKGADD -r $ROOT -f $pkg