Skip to content

Commit

Permalink
pbulk-base-0.40:
Browse files Browse the repository at this point in the history
Don't print all failed/successful jobs at the beginning, just a small
message when it is done.
  • Loading branch information
joerg committed Feb 26, 2010
1 parent ff38c56 commit 286b136
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pkgtools/pbulk-base/Makefile
@@ -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
Expand Down
12 changes: 9 additions & 3 deletions pkgtools/pbulk/files/pbulk/pbuild/jobs.c
@@ -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>.
Expand Down Expand Up @@ -47,6 +47,8 @@
#include "pbulk.h"
#include "pbuild.h"

static int post_initial;

static int log_success;
static int log_failed;

Expand Down Expand Up @@ -292,6 +294,10 @@ mark_initial(void)

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
Expand Down Expand Up @@ -399,7 +405,7 @@ process_job(struct build_job *job, enum job_state state, int log_state)
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:
Expand All @@ -409,7 +415,7 @@ process_job(struct build_job *job, enum job_state state, int log_state)
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:
Expand Down

0 comments on commit 286b136

Please sign in to comment.