pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pbulk pbulk-0.30:
details: https://anonhg.NetBSD.org/pkgsrc/rev/aaf68dbde8f3
branches: trunk
changeset: 540824:aaf68dbde8f3
user: joerg <joerg%pkgsrc.org@localhost>
date: Mon Apr 07 19:41:07 2008 +0000
description:
pbulk-0.30:
Print the collected PKG_FAIL_REASON in the HTML version of the report.
diffstat:
pkgtools/pbulk/Makefile | 4 +-
pkgtools/pbulk/files/pbulk/scripts/create-report-html.awk | 55 +++++++++++++-
2 files changed, 53 insertions(+), 6 deletions(-)
diffs (98 lines):
diff -r d442e65cf80c -r aaf68dbde8f3 pkgtools/pbulk/Makefile
--- a/pkgtools/pbulk/Makefile Mon Apr 07 19:39:24 2008 +0000
+++ b/pkgtools/pbulk/Makefile Mon Apr 07 19:41:07 2008 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.37 2008/04/04 17:58:59 joerg Exp $
+# $NetBSD: Makefile,v 1.38 2008/04/07 19:41:07 joerg Exp $
-DISTNAME= pbulk-0.29
+DISTNAME= pbulk-0.30
CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
diff -r d442e65cf80c -r aaf68dbde8f3 pkgtools/pbulk/files/pbulk/scripts/create-report-html.awk
--- a/pkgtools/pbulk/files/pbulk/scripts/create-report-html.awk Mon Apr 07 19:39:24 2008 +0000
+++ b/pkgtools/pbulk/files/pbulk/scripts/create-report-html.awk Mon Apr 07 19:41:07 2008 +0000
@@ -1,7 +1,7 @@
#!@AWK@ -f
-# $NetBSD: create-report-html.awk,v 1.9 2008/03/01 19:04:37 rillig Exp $
+# $NetBSD: create-report-html.awk,v 1.10 2008/04/07 19:41:07 joerg Exp $
#
-# Copyright (c) 2007 Joerg Sonnenberger <joerg%NetBSD.org@localhost>.
+# Copyright (c) 2007, 2008 Joerg Sonnenberger <joerg%NetBSD.org@localhost>.
# All rights reserved.
#
# This code was developed as part of Google's Summer of Code 2007 program.
@@ -53,6 +53,44 @@
print "<td> </td>" > html_report
}
+function print_pre_fail_reason(PKGNAME, chars, in_quote, in_sep, i) {
+ split(pre_fail_reason[PKGNAME], chars, "")
+ in_quote = 0
+ in_sep = 0
+ for (i = 1; i < length(chars); ++i) {
+ if (chars[i] == "\"") {
+ in_quote = 1 - in_quote
+ continue
+ }
+ if (in_quote == 0 && chars[i] == " ") {
+ if (!in_sep)
+ printf "<br />" > html_report
+ in_sep = 1
+ continue
+ }
+ in_sep = 0
+
+ if (chars[i] == "\\") {
+ ++i
+ if (chars[i] == "n")
+ printf " " > html_report
+ else if (chars[i] == "t")
+ printf " " > html_report
+ else if (chars[i] == "<")
+ printf "<" > html_report
+ else if (chars[i] == ">")
+ printf ">" > html_report
+ else if (chars[i] == "&")
+ printf "&" > html_report
+ else
+ printf "%s", chars[i] > html_report
+ continue
+ }
+ printf "%s", chars[i] > html_report
+ }
+ printf "\n" > html_report
+}
+
function print_failed(PKGNAME, cmd, has_pre_clean, has_depends,
has_checksum,has_configure, has_build, has_install, has_package,
has_clean, has_deinstall) {
@@ -99,6 +137,14 @@
print_failed_log_line(PKGNAME, "clean", has_clean)
print_failed_log_line(PKGNAME, "deinstall", has_deinstall)
print "</tr>" > html_report
+ if (status[PKGNAME] == "prefailed") {
+ print "<tr class=\"" status[PKGNAME] "\">" > html_report
+ printf "<td> </td>" > html_report
+ printf "<td colspan=\"13\">" > html_report
+ print_pre_fail_reason(PKGNAME)
+ print "</td>" > html_report
+ print "</tr>" > html_report
+ }
}
BEGIN {
@@ -136,9 +182,10 @@
location[cur] = substr($0, 14)
else if ($0 ~ "^PKG_DEPTH=")
depth[cur] = substr($0, 11) - 1
- else if ($0 ~ "^BUILD_STATUS=") {
+ else if ($0 ~ "^BUILD_STATUS=")
status[cur] = substr($0, 14)
- }
+ else if ($0 ~ "^PKG_FAIL_REASON=")
+ pre_fail_reason[cur] = substr($0, 17)
}
close(report_file)
Home |
Main Index |
Thread Index |
Old Index