summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2010-03-11 13:18:16 +0000
committertnn <tnn@pkgsrc.org>2010-03-11 13:18:16 +0000
commit0050067bea8419878470e3eae16a386167057f15 (patch)
treee1fd57e590c087ab9a8bf0477305dbc0fa88003f /pkgtools
parentc7182f7cd9fef9cdb2821e7ebe97b1cb21463c78 (diff)
downloadpkgsrc-0050067bea8419878470e3eae16a386167057f15.tar.gz
mawk(1) doesn't know how to take length() of an array.
Diffstat (limited to 'pkgtools')
-rwxr-xr-xpkgtools/pbulk/files/pbulk/scripts/create-report-html.awk9
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgtools/pbulk/files/pbulk/scripts/create-report-html.awk b/pkgtools/pbulk/files/pbulk/scripts/create-report-html.awk
index 0710f55031e..476f3aad9b9 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.11 2008/06/11 19:27:03 joerg Exp $
+# $NetBSD: create-report-html.awk,v 1.12 2010/03/11 13:18:16 tnn Exp $
#
# Copyright (c) 2007, 2008 Joerg Sonnenberger <joerg@NetBSD.org>.
# All rights reserved.
@@ -53,11 +53,14 @@ function print_failed_log_line(PKGNAME, PHASE, VAR) {
print "<td>&nbsp;</td>" > html_report
}
-function print_pre_fail_reason(PKGNAME, chars, in_quote, in_sep, i) {
+function print_pre_fail_reason(PKGNAME, chars, len, in_quote, in_sep, i) {
split(pre_fail_reason[PKGNAME], chars, "")
in_quote = 0
in_sep = 0
- for (i = 1; i < length(chars); ++i) {
+ len = 0
+ for (i in chars)
+ len++
+ for (i = 1; i < len; ++i) {
if (chars[i] == "\"") {
in_quote = 1 - in_quote
continue