summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2017-03-07 14:15:10 +0000
committerMarc Espie <espie@cvs.openbsd.org>2017-03-07 14:15:10 +0000
commitd4d06da13bdc23b57dec6dc5e3661a9fb5912d39 (patch)
tree5eae34dcad0155ccf99eb87312d23d88283ffc23
parent68d50de91c350fe5f49a5450cc294c082339a963 (diff)
error message bugfix: forgot to pass object around, so
parse_problems would report unspecific repository issues instead of trouble with a given package.
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackageLocation.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageLocation.pm b/usr.sbin/pkg_add/OpenBSD/PackageLocation.pm
index 973e3c47979..1b8d9919de7 100644
--- a/usr.sbin/pkg_add/OpenBSD/PackageLocation.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PackageLocation.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: PackageLocation.pm,v 1.50 2016/10/04 10:10:19 espie Exp $
+# $OpenBSD: PackageLocation.pm,v 1.51 2017/03/07 14:15:09 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -78,8 +78,8 @@ sub _opened
}
my $fh = $self->{repository}->open($self);
if (!defined $fh) {
- $self->{repository}->parse_problems($self->{errors})
- if defined $self->{errors};
+ $self->{repository}->parse_problems($self->{errors}, undef,
+ $self) if defined $self->{errors};
undef $self->{errors};
return;
}