summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2010-03-11 16:31:11 +0000
committertnn <tnn@pkgsrc.org>2010-03-11 16:31:11 +0000
commitc75eb3f11fb87cbe700c0cc2c40360f220c2fca5 (patch)
treee8675a2f3b22dffc8d5599730a517de17ea866ea /pkgtools
parent9b03a38258d1cefce1b14afe290edcdd11c11835 (diff)
downloadpkgsrc-c75eb3f11fb87cbe700c0cc2c40360f220c2fca5.tar.gz
simplify previous fix
Diffstat (limited to 'pkgtools')
-rwxr-xr-xpkgtools/pbulk/files/pbulk/scripts/create-report-html.awk8
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgtools/pbulk/files/pbulk/scripts/create-report-html.awk b/pkgtools/pbulk/files/pbulk/scripts/create-report-html.awk
index 476f3aad9b9..6b77bc0e613 100755
--- a/pkgtools/pbulk/files/pbulk/scripts/create-report-html.awk
+++ b/pkgtools/pbulk/files/pbulk/scripts/create-report-html.awk
@@ -1,5 +1,5 @@
#!@AWK@ -f
-# $NetBSD: create-report-html.awk,v 1.12 2010/03/11 13:18:16 tnn Exp $
+# $NetBSD: create-report-html.awk,v 1.13 2010/03/11 16:31:11 tnn Exp $
#
# Copyright (c) 2007, 2008 Joerg Sonnenberger <joerg@NetBSD.org>.
# All rights reserved.
@@ -53,14 +53,12 @@ function print_failed_log_line(PKGNAME, PHASE, VAR) {
print "<td>&nbsp;</td>" > html_report
}
-function print_pre_fail_reason(PKGNAME, chars, len, in_quote, in_sep, i) {
+function print_pre_fail_reason(PKGNAME, chars, in_quote, in_sep, i) {
split(pre_fail_reason[PKGNAME], chars, "")
in_quote = 0
in_sep = 0
len = 0
- for (i in chars)
- len++
- for (i = 1; i < len; ++i) {
+ for (i = 1; i < length(pre_fail_reason[PKGNAME]); ++i) {
if (chars[i] == "\"") {
in_quote = 1 - in_quote
continue