pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pbulk-base pbulk-base-0.40:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/06bdd0d34022
branches:  trunk
changeset: 572452:06bdd0d34022
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Feb 26 16:25:49 2010 +0000

description:
pbulk-base-0.40:
Don't print all failed/successful jobs at the beginning, just a small
message when it is done.

diffstat:

 pkgtools/pbulk-base/Makefile             |   4 ++--
 pkgtools/pbulk/files/pbulk/pbuild/jobs.c |  12 +++++++++---
 2 files changed, 11 insertions(+), 5 deletions(-)

diffs (59 lines):

diff -r 4dc8c6330460 -r 06bdd0d34022 pkgtools/pbulk-base/Makefile
--- a/pkgtools/pbulk-base/Makefile      Fri Feb 26 16:03:33 2010 +0000
+++ b/pkgtools/pbulk-base/Makefile      Fri Feb 26 16:25:49 2010 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.2 2009/08/23 18:02:04 joerg Exp $
+# $NetBSD: Makefile,v 1.3 2010/02/26 16:25:49 joerg Exp $
 
-DISTNAME=      pbulk-base-0.39
+DISTNAME=      pbulk-base-0.40
 COMMENT=       Core components of the modular bulk build framework
 
 PKG_DESTDIR_SUPPORT=   user-destdir
diff -r 4dc8c6330460 -r 06bdd0d34022 pkgtools/pbulk/files/pbulk/pbuild/jobs.c
--- a/pkgtools/pbulk/files/pbulk/pbuild/jobs.c  Fri Feb 26 16:03:33 2010 +0000
+++ b/pkgtools/pbulk/files/pbulk/pbuild/jobs.c  Fri Feb 26 16:25:49 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: jobs.c,v 1.10 2009/01/31 23:25:38 joerg Exp $ */
+/* $NetBSD: jobs.c,v 1.11 2010/02/26 16:25:49 joerg Exp $ */
 
 /*-
  * Copyright (c) 2007, 2009 Joerg Sonnenberger <joerg%NetBSD.org@localhost>.
@@ -47,6 +47,8 @@
 #include "pbulk.h"
 #include "pbuild.h"
 
+static int post_initial;
+
 static int log_success;
 static int log_failed;
 
@@ -292,6 +294,10 @@
 
        mark_initial_state(log_success, JOB_DONE, "successful");
        mark_initial_state(log_failed, JOB_FAILED, "failing");
+
+       if (verbosity >= 1)
+               printf("Initialisation complete.\n");
+       post_initial = 1;
 }
 
 static void
@@ -399,7 +405,7 @@
                                err(1, "Cannot log successful build");
                        free(buf);
                }
-               if (verbosity >= 1)
+               if (verbosity >= 1 && post_initial)
                        ts_printf("Successfully built %s\n", job->pkgname);
                break;
        case JOB_FAILED:
@@ -409,7 +415,7 @@
                                err(1, "Cannot log failed build");
                        free(buf);
                }
-               if (verbosity >= 1)
+               if (verbosity >= 1 && post_initial)
                        ts_printf("Failed to build    %s\n", job->pkgname);
                /* FALLTHROUGH */
        case JOB_INDIRECT_FAILED:



Home | Main Index | Thread Index | Old Index