From: espie Date: Tue, 27 Jul 2010 09:09:43 +0000 (+0000) Subject: print these better X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=39ffba692dad8c0e5f5d9989be1a29dddd010558;p=openbsd print these better --- diff --git a/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm b/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm index db89b8192cb..7c6914ad9a3 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PackageRepository.pm,v 1.87 2010/07/26 10:59:32 espie Exp $ +# $OpenBSD: PackageRepository.pm,v 1.88 2010/07/27 09:09:43 espie Exp $ # # Copyright (c) 2003-2010 Marc Espie # @@ -696,7 +696,7 @@ sub parse_problems next if m/^421\s+/o; } if ($notyet) { - print STDERR "Error from $url:\n" if $notyet; + $self->{state}->errsay("Error from #1", $url); $notyet = 0; } if (m/^421\s+/o || @@ -707,7 +707,7 @@ sub parse_problems if (m/^550\s+/o) { $self->{lasterror} = 550; } - print STDERR $_; + $self->{state}->errprint("#1", $_); } CORE::close($fh); $self->SUPER::parse_problems($filename, $hint, $object);