diff options
author | joerg <joerg> | 2008-01-17 19:25:33 +0000 |
---|---|---|
committer | joerg <joerg> | 2008-01-17 19:25:33 +0000 |
commit | dc6c13f61ff089b672c891b861a4bb9d5712cbf6 (patch) | |
tree | 99dc7949d4f2db9ec9d0b58596d0799c78fc2ddb /pkgtools/pbulk | |
parent | 0bb3af9472eff306bd6744e296433aecd731aea7 (diff) | |
download | pkgsrc-dc6c13f61ff089b672c891b861a4bb9d5712cbf6.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')
-rw-r--r-- | pkgtools/pbulk/Makefile | 4 | ||||
-rwxr-xr-x | pkgtools/pbulk/files/pbulk/scripts/create-report-html.awk | 8 | ||||
-rwxr-xr-x | pkgtools/pbulk/files/pbulk/scripts/create-report-txt.awk | 13 |
3 files changed, 15 insertions, 10 deletions
diff --git a/pkgtools/pbulk/Makefile b/pkgtools/pbulk/Makefile index d73e6f4fa28..7f4060b592e 100644 --- a/pkgtools/pbulk/Makefile +++ b/pkgtools/pbulk/Makefile @@ -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 --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 |