[Koha-patches] [PATCH] Bug 6722: Cause build output to appear on the screen
Chris Cormack
chrisc at catalyst.net.nz
Mon Sep 5 03:20:37 CEST 2011
* Chris Nighswonger (cnighswonger at foundations.edu) wrote:
> This patch does not apply cleanly to 3.4.x. If it should, please rebase
> against 3.4.x and resubmit with [3.4.x] in the subject line.
>
This patch depends on the patches for 6722 being applied first.
I think its safe to apply them to the 3.4.x tree, then this one after
Chris
> Kind Regards,
> Chris
>
> On Mon, Aug 15, 2011 at 1:19 AM, Robin Sheat <robin at catalyst.net.nz>
> wrote:
>
> This allows the build information to not be suppressed when using
> build-git-snapshot. This makes seeing where problems are substantially
> easier.
> ---
> A debian/build-git-snapshot | A A 9 ++++++++-
> A 1 files changed, 8 insertions(+), 1 deletions(-)
>
> diff --git a/debian/build-git-snapshot b/debian/build-git-snapshot
> index cd0545a..91552ff 100755
> --- a/debian/build-git-snapshot
> +++ b/debian/build-git-snapshot
> @@ -58,6 +58,13 @@ sub sys_command_output {
> A A return map { chomp; $_ } <$command_output>;
> A }
>
> +sub sys_command_output_screen {
> + A A my ($command) = @_;
> +
> + A A print "$command\n" if $debug;
> + A A system($command);
> +}
> +
> A sub everything_is_committed {
> A A my $filter;
> A A for ($git_checks) {
> @@ -130,7 +137,7 @@ sub build_package {
> A A sys_command_output( qq{git archive --format=tar
> --prefix="koha-$newversion/" HEAD | gzip -9 >
> "../koha_$newversion.tar.gz"} );
>
> A A my $pdebuildopts = $buildresult ? "--buildresult $buildresult" :
> "";
> - A A sys_command_output( "pdebuild $pdebuildopts" );
> + A A sys_command_output_screen( "pdebuild $pdebuildopts" );
> A }
>
> A everything_is_committed() or die "cannot build: uncommited changes";
> --
> 1.7.4.1
>
> _______________________________________________
> Koha-patches mailing list
> Koha-patches at lists.koha-community.org
> http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
> website : http://www.koha-community.org/
> git : http://git.koha-community.org/
> bugs : http://bugs.koha-community.org/
> _______________________________________________
> Koha-patches mailing list
> Koha-patches at lists.koha-community.org
> http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
> website : http://www.koha-community.org/
> git : http://git.koha-community.org/
> bugs : http://bugs.koha-community.org/
--
Chris Cormack
Catalyst IT Ltd.
+64 4 803 2238
PO Box 11-053, Manners St, Wellington 6142, New Zealand
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: </pipermail/koha-patches/attachments/20110905/148caa60/attachment.pgp>
More information about the Koha-patches
mailing list