Bug#355043: [Buildd-tools-devel] Bug#355043: log_command() is too verbous, should be a debug message

Martin Michlmayr tbm at cyrius.com
Wed Mar 8 19:55:25 UTC 2006


* Roger Leigh <rleigh at whinlatter.ukfsn.org> [2006-03-08 12:30]:
> The attached patch allows the logging to be rather more selective, so
> all the trivial commands are ignored.
> 
> Please could you try this?  If there are any other messages you want
> disabling, it's just a matter of changing 1 or 0 at the end of the
> *_command() call.

If you apply the patch below, then you can consider _command("tbm
whining", priority) to be of priority==0, i.e. I'll shut up. ;-)


I don't care about the first line:
| /usr/bin/apt-get CHROOT_APT_OPTIONS --only-source -q -d source kxmleditor=1.1.4-2.1 2>&1 </dev/null
| Reading package lists...
| Building dependency tree...


--- /usr/bin/sbuild	2006-03-08 12:28:49.000000000 +0000
+++ sbuild	2006-03-08 19:53:00.000000000 +0000
@@ -481,7 +481,7 @@
 				print PLOG "Fetching source files...\n";
 				@made = @{$entries{$version}};
 
-				my $command = get_apt_command("$conf::apt_get", "--only-source -q -d source $pkg=$version 2>&1 </dev/null", $main::username, 1);
+				my $command = get_apt_command("$conf::apt_get", "--only-source -q -d source $pkg=$version 2>&1 </dev/null", $main::username, 0);
 				if (!open( PIPE, "$command |" )) {
 					print PLOG "Can't open pipe to $conf::apt_get: $!\n";
 					return ("ERROR", @made);


-- 
Martin Michlmayr
http://www.cyrius.com/




More information about the Buildd-tools-devel mailing list