# ex:ts=8 sw=4:
-# $OpenBSD: PackageRepository.pm,v 1.144 2017/05/29 12:54:05 espie Exp $
+# $OpenBSD: PackageRepository.pm,v 1.145 2017/06/20 18:05:44 espie Exp $
#
# Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org>
#
my $notyet = 1;
my $broken = 0;
my $signify_error = 0;
+ $self->{last_error} = 0;
while(<$fh>) {
next if m/^(?:200|220|221|226|229|230|227|250|331|500|150)[\s\-]/o;
next if m/^EPSV command not understood/o;
} else {
$self->{lasterror} = 404;
}
+ # ignore errors for stable packages
+ next if $self->can_be_empty;
}
if (defined $hint && $hint == 0) {
next if m/^ftp: local: -: Broken pipe/o;
next if m/^421\s+/o;
}
+ # not retrieving the file => always the same message
+ # so it's superfluous
+ next if m/^signify:/ && $self->{lasterror};
if ($notyet) {
$self->{state}->errprint("#1: ", $url);
if (defined $object) {