diff options
author | 2010-06-05 16:22:08 +0000 | |
---|---|---|
committer | 2010-06-05 16:22:08 +0000 | |
commit | f59397160aaa4952901072ef2553ddb9bec05cae (patch) | |
tree | 01e8684008689ae83550954a063099b9e15995cb | |
parent | roughly halfway through dependencies check (really need to handle (diff) | |
download | wireguard-openbsd-f59397160aaa4952901072ef2553ddb9bec05cae.tar.xz wireguard-openbsd-f59397160aaa4952901072ef2553ddb9bec05cae.zip |
modern syntax
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackingList.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackingList.pm b/usr.sbin/pkg_add/OpenBSD/PackingList.pm index a9379a51131..f0d26b2744d 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackingList.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackingList.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PackingList.pm,v 1.105 2010/05/10 09:17:55 espie Exp $ +# $OpenBSD: PackingList.pm,v 1.106 2010/06/05 16:22:08 espie Exp $ # # Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org> # @@ -518,7 +518,7 @@ sub from_installation require OpenBSD::PackageInfo; - $code = \&defaultCode if !defined $code; + $code //= \&defaultCode; if ($code == \&DependOnly && defined $plist_cache->{$pkgname}) { return $plist_cache->{$pkgname}; |