Mock logs (especially build.log and root.log) provide valuable information for the reviewer. From logs it's often possible see different packaging problems.
As an example, Fedora version of Apache Maven (a popular build system for Java packages) prints warnings about unneeded dependencies. During my reviews I am running some tests that check mock logs looking these warnings.
It would be nice if koji-download-scratch would be able to download mock logs from Koji (either by default or given a command line parameter).
As a workaround the following script can be used instead, it downloads mock logs too.
{{{
use LWP::Simple;
$tid = shift @ARGV or die "Usage: $0 <TASK-ID> [wget options]"; $tid =~ /^\d+(\d{4})$/ or die "Invalid Koji task ID: $tid"; $url = "http://kojipkgs.fedoraproject.org/work/tasks/".int($1)."/$tid/";
print STDERR "Looking up task on Koji...\n" or die $!; @files = map{"$url$_"} get($url) =~ /href="([^\/?][^"]*)"/g or die "Task $tid was not found on Koji";
exec "/usr/bin/wget @ARGV -- @files"; }}}
fixed in b5d042f
Oops, a little short I was.. Thanks for report! Current version just download the logs as well, no option to handle it. Feel free to reopen report if need be.
Login to comment on this ticket.