=head1 NAME

botch-wanna-build-sortblockers - importance of source packages for ports

=head1 SYNOPSIS

=over

=item B<botch-wanna-build-sortblockers> [options] I<build-attempt-list> I<importance-metric>

=back

=head1 DESCRIPTION

Filter the output of botch-calcportsmetric for "build-attempted" packages from
wanna-build.

=head1 OPTIONS

=over 4

=item B<-h, --help>

Show help.

=item B<-r, --reverse>

reverse the result of comparisons

=item B<-m, --min>

sort by minimum number of blocked source packages (default)

=item B<-M, --max>

sort by maximum number of blocked source packages

=item B<--min-popcon>

sort by minimum sum of popcon values of the blocked source packages

=item B<--max-popcon>

sort by maximum sum of popcon values of the blocked source packages

=item B<-v, --verbose>

Be verbose.

=back

=head1 EXAMPLE

Either download an importance file:

 wget http://bootstrap.debian.net/importance_metric_noall.txt

Or generate it:

 zcat packages_amd64.gz | grep-dctrl -FArchitecture all > available
 botch-create_graph --deb-native-arch=amd64 --available=available --strongtype packages sources > strongbuildgraph.xml
 botch-buildgraph2srcgraph --deb-native-arch=amd64 strongbuildgraph.xml packages sources > strongsrcgraph.xml
 botch-create_graph --deb-native-arch=amd64 --available=available --closuretype packages sources > closurebuildgraph.xml
 botch-buildgraph2srcgraph --deb-native-arch=amd64 closurebuildgraph.xml packages sources > closuresrcgraph.xml
 botch-calcportsmetric --online strongsrcgraph.xml closuresrcgraph.xml > importance_metric_noall.txt

And then do:

 ssh buildd_arm64@buildd.debian-ports.org  wanna-build -A arm64 -d unstable -l  build-attempted > build-attempted
 botch-wanna-build-findblockers build-attempted importance_metric_noall.txt

=head1 BUGS

See L<http://bugs.debian.org/botch>.

=head1 SEE ALSO

Debian doc-base Manual F</usr/share/doc/botch/wiki/Home.html>

=head1 AUTHOR

This man page was written by Johannes Schauer. Botch is written by Johannes
Schauer and Pietro Abate.

=head1 COPYRIGHT

Copyright 2012-2014 Johannes Schauer, Pietro Abate

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version. A special linking exception to the GNU Lesser General Public
License applies to this library, see the COPYING file for more information.

