artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75136cc
)
do not whine if installpath is undef.
author
espie
<espie@openbsd.org>
Mon, 29 May 2017 12:54:05 +0000
(12:54 +0000)
committer
espie
<espie@openbsd.org>
Mon, 29 May 2017 12:54:05 +0000
(12:54 +0000)
usr.sbin/pkg_add/OpenBSD/PackageRepository.pm
patch
|
blob
|
history
diff --git
a/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm
b/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm
index
2a4abb7
..
242fd41
100644
(file)
--- 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.14
3 2017/05/18 12:24:1
5 espie Exp $
+# $OpenBSD: PackageRepository.pm,v 1.14
4 2017/05/29 12:54:0
5 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 '';