diff options
author | tnn <tnn@pkgsrc.org> | 2010-03-11 16:31:11 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2010-03-11 16:31:11 +0000 |
commit | c75eb3f11fb87cbe700c0cc2c40360f220c2fca5 (patch) | |
tree | e8675a2f3b22dffc8d5599730a517de17ea866ea /pkgtools/pbulk | |
parent | 9b03a38258d1cefce1b14afe290edcdd11c11835 (diff) | |
download | pkgsrc-c75eb3f11fb87cbe700c0cc2c40360f220c2fca5.tar.gz |
simplify previous fix
Diffstat (limited to 'pkgtools/pbulk')
-rwxr-xr-x | pkgtools/pbulk/files/pbulk/scripts/create-report-html.awk | 8 |
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> </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 |