diff options
author | 2017-05-29 12:54:05 +0000 | |
---|---|---|
committer | 2017-05-29 12:54:05 +0000 | |
commit | 2d7516c0ea90644fcdb98265450eb84db1070ce8 (patch) | |
tree | 1bf76c0a8853df5b7d64dd02cb495284321a9c08 | |
parent | hook up slaacd and slaacctl. (diff) | |
download | wireguard-openbsd-2d7516c0ea90644fcdb98265450eb84db1070ce8.tar.xz wireguard-openbsd-2d7516c0ea90644fcdb98265450eb84db1070ce8.zip |
do not whine if installpath is undef.
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackageRepository.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm b/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm index 2a4abb7d263..242fd414a8a 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.143 2017/05/18 12:24:15 espie Exp $ +# $OpenBSD: PackageRepository.pm,v 1.144 2017/05/29 12:54:05 espie Exp $ # # Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org> # @@ -113,7 +113,10 @@ sub parse { my ($class, $r, $state) = @_; + { + no warnings qw(uninitialized); # in case installpath is empty $$r =~ s/^installpath(\:|$)/$state->installpath.$1/e; + } my $u = $$r; return undef if $u eq ''; |