diff options
author | tnn <tnn@pkgsrc.org> | 2010-02-11 12:17:23 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2010-02-11 12:17:23 +0000 |
commit | 11d5b3b299ca1cdec5227d769344406a5ddf650a (patch) | |
tree | 89f49ad6c0b0cc6ef54877a90b967d07187c0d41 /pkgtools/pkg_rolling-replace | |
parent | c1677db6fbd39c1d3ac60029c90deb39267b58f6 (diff) | |
download | pkgsrc-11d5b3b299ca1cdec5227d769344406a5ddf650a.tar.gz |
might as well uniqify the FAILED and SUCCEEDED lists
Diffstat (limited to 'pkgtools/pkg_rolling-replace')
-rwxr-xr-x | pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.sh | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.sh b/pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.sh index 022c4d4b793..3e01d8d88f4 100755 --- a/pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.sh +++ b/pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.sh @@ -1,6 +1,6 @@ #!/bin/sh -# $NetBSD: pkg_rolling-replace.sh,v 1.26 2010/02/11 12:07:33 tnn Exp $ +# $NetBSD: pkg_rolling-replace.sh,v 1.27 2010/02/11 12:17:23 tnn Exp $ #<license> # Copyright (c) 2006 BBN Technologies Corp. All rights reserved. # @@ -295,20 +295,12 @@ error() mark_as_succeeded() { - if [ -n "$SUCCEEDED" ]; then - SUCCEEDED="$SUCCEEDED $1" - else - SUCCEEDED="$1" - fi + SUCCEEDED=$(uniqify $SUCCEEDED $1) } mark_as_failed() { - if [ -n "$FAILED" ]; then - FAILED="$FAILED $1" - else - FAILED="$1" - fi + FAILED=$(uniqify $FAILED $1) } todo() |