Author: jw Date: 2006-03-28 17:51:28 +0200 (Tue, 28 Mar 2006) New Revision: 1047 Modified: crux-2.2/iso/bin/setup-helper Log: only rename ports if there's something to do Modified: crux-2.2/iso/bin/setup-helper =================================================================== --- crux-2.2/iso/bin/setup-helper 2006-03-28 13:48:32 UTC (rev 1046) +++ crux-2.2/iso/bin/setup-helper 2006-03-28 15:51:28 UTC (rev 1047) @@ -5,6 +5,7 @@ ROOT=$1 DB=$ROOT/var/lib/pkg/db +DB=/tmp/db ## those values should be changed: TMPDB=$DB.tmp @@ -22,13 +23,18 @@ pkg=$@ filter="sed " + runfilter="no" 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]}" filter="$filter -e 's|^${split[0]}$|${split[1]}|'" + runfilter="yes" fi - done + done + if [ "$runfilter" = "no" ]; then + return + fi :> $TMPDB if [ -f $DB ]; then
participants (1)
-
crux@crux.nu