diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2017-05-29 12:54:06 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2017-05-29 12:54:06 +0000 |
commit | b81127ec3126fb747afbaa67d666a3e74a8efc69 (patch) | |
tree | c5521978f89fa3b8e5cc6b1c382baa0704df3120 /usr.sbin | |
parent | 06c4ccc133fcb3e73c00610bc111bb21d998135f (diff) |
do not whine if installpath is undef.
Diffstat (limited to 'usr.sbin')
-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 ''; |