pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_rolling-replace/files might as well uniqi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a3be4dce4d77
branches:  trunk
changeset: 571341:a3be4dce4d77
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Thu Feb 11 12:17:23 2010 +0000

description:
might as well uniqify the FAILED and SUCCEEDED lists

diffstat:

 pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.sh |  14 +++-----------
 1 files changed, 3 insertions(+), 11 deletions(-)

diffs (34 lines):

diff -r 8da7c7478f8b -r a3be4dce4d77 pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.sh
--- a/pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.sh Thu Feb 11 12:07:33 2010 +0000
+++ b/pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.sh Thu Feb 11 12:17:23 2010 +0000
@@ -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 @@
 
 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()



Home | Main Index | Thread Index | Old Index