remove outdated comment
use progress->for_list
This commit is contained in:
parent
95ea61be00
commit
7ff9f33df5
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
# $OpenBSD: check-lib-depends,v 1.27 2010/06/30 11:11:19 espie Exp $
|
||||
# $OpenBSD: check-lib-depends,v 1.28 2010/07/12 20:19:40 espie Exp $
|
||||
# Copyright (c) 2004-2010 Marc Espie <espie@openbsd.org>
|
||||
#
|
||||
# Permission to use, copy, modify, and distribute this software for any
|
||||
@ -15,8 +15,6 @@
|
||||
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
# check all packages in the current directory, and report library issues
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
@ -82,6 +80,7 @@ sub extracted_name
|
||||
my ($self, $item) = @_;
|
||||
return $self->{location}.$item->fullname;
|
||||
}
|
||||
|
||||
sub retrieve
|
||||
{
|
||||
my ($self, $state, $item) = @_;
|
||||
@ -786,12 +785,10 @@ sub main
|
||||
if (@ARGV == 0 && ($state->{destdir} ne '/' || $state->{source})) {
|
||||
$self->do_plist($state);
|
||||
} else {
|
||||
my $i = 0;
|
||||
$state->progress->set_header("Scanning");
|
||||
for my $pkgname (@ARGV) {
|
||||
$state->progress->show(++$i, scalar @ARGV);
|
||||
$self->do_pkg($state, $pkgname);
|
||||
}
|
||||
$state->progress->for_list("Scanning", \@ARGV,
|
||||
sub {
|
||||
$self->do_pkg($state, shift);
|
||||
});
|
||||
}
|
||||
|
||||
exit($state->{errors} ? 1 : 0);
|
||||
|
Loading…
Reference in New Issue
Block a user