diff options
author | Bernd Ahlers <bernd@cvs.openbsd.org> | 2006-02-23 12:28:23 +0000 |
---|---|---|
committer | Bernd Ahlers <bernd@cvs.openbsd.org> | 2006-02-23 12:28:23 +0000 |
commit | 9704b0e5264a052e2e3e2a4acec4e6d46da82778 (patch) | |
tree | 28193c03bd3dd01abc30527c9e6299c2c4e7154a /usr.sbin/pkg_add/pkg_info | |
parent | 1b4effe0ce94723f814ff0ad72ce20c4b17f77e2 (diff) |
Let 'pkg_info -P' work with package distribution files and URLs to a
package.
ok espie@
Diffstat (limited to 'usr.sbin/pkg_add/pkg_info')
-rw-r--r-- | usr.sbin/pkg_add/pkg_info | 6 |
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"; } |