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.21:
details: https://anonhg.NetBSD.org/pkgsrc/rev/eedf216b0e64
branches: trunk
changeset: 537840:eedf216b0e64
user: joerg <joerg%pkgsrc.org@localhost>
date: Thu Jan 17 19:25:33 2008 +0000
description:
pbulk-0.21:
Don't try to remove a non-existing file if no package had an error
during the build.
diffstat:
pkgtools/pbulk/Makefile | 4 ++--
pkgtools/pbulk/files/pbulk/scripts/create-report-html.awk | 8 +++++---
pkgtools/pbulk/files/pbulk/scripts/create-report-txt.awk | 13 ++++++++-----
3 files changed, 15 insertions(+), 10 deletions(-)
diffs (70 lines):
diff -r 34598fcd6f77 -r eedf216b0e64 pkgtools/pbulk/Makefile
--- a/pkgtools/pbulk/Makefile Thu Jan 17 17:47:09 2008 +0000
+++ b/pkgtools/pbulk/Makefile Thu Jan 17 19:25:33 2008 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.26 2008/01/17 17:47:09 joerg Exp $
+# $NetBSD: Makefile,v 1.27 2008/01/17 19:25:33 joerg Exp $
-DISTNAME= pbulk-0.20
+DISTNAME= pbulk-0.21
CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
diff -r 34598fcd6f77 -r eedf216b0e64 pkgtools/pbulk/files/pbulk/scripts/create-report-html.awk
--- a/pkgtools/pbulk/files/pbulk/scripts/create-report-html.awk Thu Jan 17 17:47:09 2008 +0000
+++ b/pkgtools/pbulk/files/pbulk/scripts/create-report-html.awk Thu Jan 17 19:25:33 2008 +0000
@@ -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@localhost>.
# All rights reserved.
@@ -178,13 +178,15 @@
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 -r 34598fcd6f77 -r eedf216b0e64 pkgtools/pbulk/files/pbulk/scripts/create-report-txt.awk
--- a/pkgtools/pbulk/files/pbulk/scripts/create-report-txt.awk Thu Jan 17 17:47:09 2008 +0000
+++ b/pkgtools/pbulk/files/pbulk/scripts/create-report-txt.awk Thu Jan 17 19:25:33 2008 +0000
@@ -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@localhost>.
# All rights reserved.
@@ -140,12 +140,15 @@
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
Home |
Main Index |
Thread Index |
Old Index