diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2010-07-27 09:09:44 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2010-07-27 09:09:44 +0000 |
commit | 49bcaa88e29fb6087604a211f8f72cad2f8b26d0 (patch) | |
tree | 1759bf96bf0c114e7e101e370c5b0e90837004cb | |
parent | f8f5c8c674fbea15e2b2181b46efbd783adf7c88 (diff) |
print these better
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackageRepository.pm | 6 |
1 files changed, 3 insertions, 3 deletions
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 <espie@openbsd.org> # @@ -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); |