summaryrefslogtreecommitdiff
path: root/pkgtools/pbulk/files
diff options
context:
space:
mode:
authorjoerg <joerg>2008-01-17 19:25:33 +0000
committerjoerg <joerg>2008-01-17 19:25:33 +0000
commitd2cd51a6eec12c592f4811b770a80e7efef4b94c (patch)
tree99dc7949d4f2db9ec9d0b58596d0799c78fc2ddb /pkgtools/pbulk/files
parent8e09ef340ecaea64c5427ed121de6ba0e5609766 (diff)
downloadpkgsrc-d2cd51a6eec12c592f4811b770a80e7efef4b94c.tar.gz
pbulk-0.21:
Don't try to remove a non-existing file if no package had an error during the build.
Diffstat (limited to 'pkgtools/pbulk/files')
-rwxr-xr-xpkgtools/pbulk/files/pbulk/scripts/create-report-html.awk8
-rwxr-xr-xpkgtools/pbulk/files/pbulk/scripts/create-report-txt.awk13
2 files changed, 13 insertions, 8 deletions
diff --git a/pkgtools/pbulk/files/pbulk/scripts/create-report-html.awk b/pkgtools/pbulk/files/pbulk/scripts/create-report-html.awk
index 64779df3b39..bfd8504ca77 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.7 2007/08/16 13:02:05 joerg Exp $
+# $NetBSD: create-report-html.awk,v 1.8 2008/01/17 19:25:34 joerg Exp $
#
# Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>.
# All rights reserved.
@@ -178,13 +178,15 @@ BEGIN {
print " </table>" > html_report
print " <hr />" > html_report
+ has_top_count = 0
for (pkg in status) {
if (depth[pkg] == 0 || status[pkg] != "failed")
continue
top_count[depth[pkg] " " pkg] = pkg
+ has_top_count = 1
}
- sort(top_count, sorted_top_count, "-rn")
- if (sorted_top_count[0]) {
+ if (has_top_count) {
+ sort(top_count, sorted_top_count, "-rn")
print " <h2>Packages causing the most breakage</h2>" > html_report
print " <table>" > html_report
print " <tr>" > html_report
diff --git a/pkgtools/pbulk/files/pbulk/scripts/create-report-txt.awk b/pkgtools/pbulk/files/pbulk/scripts/create-report-txt.awk
index 5ee5f872ea8..1c4ac8ad788 100755
--- a/pkgtools/pbulk/files/pbulk/scripts/create-report-txt.awk
+++ b/pkgtools/pbulk/files/pbulk/scripts/create-report-txt.awk
@@ -1,5 +1,5 @@
#!@AWK@ -f
-# $NetBSD: create-report-txt.awk,v 1.6 2007/08/16 13:02:05 joerg Exp $
+# $NetBSD: create-report-txt.awk,v 1.7 2008/01/17 19:25:34 joerg Exp $
#
# Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>.
# All rights reserved.
@@ -140,12 +140,15 @@ BEGIN {
printf " Depending on masked package: %5d\n", pkgs_indirect_prefailed > txt_report
print "" > txt_report
+ has_top_count = 0
for (loc in location_status) {
- if (broken_location[loc] != "" && broken_location[loc] != 0)
- top_count[broken_location[loc] " " loc] = loc
+ if (broken_location[loc] == "" || broken_location[loc] == 0)
+ continue
+ top_count[broken_location[loc] " " loc] = loc
+ has_top_count = 1
}
- sort(top_count, sorted_top_count, "-rn")
- if (sorted_top_count[0]) {
+ if (has_top_count) {
+ sort(top_count, sorted_top_count, "-rn")
print "Packages breaking the most other packages" > txt_report
print "" > txt_report
print "Package Breaks Maintainer" > txt_report