summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbernd <bernd@openbsd.org>2006-02-23 12:28:22 +0000
committerbernd <bernd@openbsd.org>2006-02-23 12:28:22 +0000
commit6300354d51cc5d6d18e2fcdcf3bad5d2e16eb846 (patch)
tree7629e2b4620f5f4e2dda7aef351ecc335fa62ae2
parentremove unused variable (diff)
downloadwireguard-openbsd-6300354d51cc5d6d18e2fcdcf3bad5d2e16eb846.tar.xz
wireguard-openbsd-6300354d51cc5d6d18e2fcdcf3bad5d2e16eb846.zip
Let 'pkg_info -P' work with package distribution files and URLs to a
package. ok espie@
-rw-r--r--usr.sbin/pkg_add/pkg_info6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/pkg_info b/usr.sbin/pkg_add/pkg_info
index bb5dbe3c9d1..926b66c6be5 100644
--- a/usr.sbin/pkg_add/pkg_info
+++ b/usr.sbin/pkg_add/pkg_info
@@ -1,6 +1,6 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: pkg_info,v 1.38 2006/02/09 09:40:31 espie Exp $
+# $OpenBSD: pkg_info,v 1.39 2006/02/23 12:28:22 bernd Exp $
#
# Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org>
#
@@ -301,8 +301,8 @@ sub print_info
if ($opt_P) {
require OpenBSD::PackingList;
- my $plist = OpenBSD::PackingList->from_installation(
- $pkg, \&OpenBSD::PackingList::ExtraInfoOnly);
+ my $plist = $handle->plist(
+ \&OpenBSD::PackingList::ExtraInfoOnly);
print "Pkgpath:\n" unless $opt_q;
print $plist->{extrainfo}->{subdir}, "\n";
}