summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2019-10-13 16:21:47 +0000
committerMarc Espie <espie@cvs.openbsd.org>2019-10-13 16:21:47 +0000
commit84b23a2d14fb4864833dbae52fb399b75ffbc1ee (patch)
treef438b8ed4934f9f432d6ee48ecb96c58065ebe90 /usr.sbin/pkg_add/OpenBSD/PackageRepository.pm
parente77dc45dc3404ae26af1ca45a7610e376cfff54f (diff)
- have a method explicitly return undef instead of falling off the end
- old signatures have been dead for 3 years, time to remove mention of them in error messages
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PackageRepository.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackageRepository.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm b/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm
index 87530764b87..e09a0a33312 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.168 2019/08/20 11:11:53 espie Exp $
+# $OpenBSD: PackageRepository.pm,v 1.169 2019/10/13 16:21:46 espie Exp $
#
# Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org>
#
@@ -267,6 +267,7 @@ sub find
if ($self->contents) {
return $self;
}
+ return undef;
}
sub grabPlist
@@ -365,7 +366,7 @@ sub parse_problems
}
if (m/^signify:/) {
$signify_error = 1;
- s/.*unsigned .*archive.*/unsigned package (signify(1) doesn't see old-style signatures)/;
+ s/.*unsigned .*archive.*/unsigned package/;
}
if (m/^421\s+/o ||
m/^ftp: connect: Connection timed out/o ||