diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2010-01-09 10:45:33 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2010-01-09 10:45:33 +0000 |
commit | 8bf87ff0e6f51524a4ca44fe5b34eb426142cb7f (patch) | |
tree | a8041e7f148cbc5c7de08b9828e19b0a1ea3dbe5 /usr.sbin/pkg_add/pkg_info | |
parent | c6b405c968feb39c3f780484c36c7ec4ceee3c40 (diff) |
tweak path parsing to handle inst:pkgname and such as well...
Diffstat (limited to 'usr.sbin/pkg_add/pkg_info')
-rw-r--r-- | usr.sbin/pkg_add/pkg_info | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/pkg_info b/usr.sbin/pkg_add/pkg_info index e20b23fc10d..9758048ac59 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.85 2010/01/08 17:06:00 espie Exp $ +# $OpenBSD: pkg_info,v 1.86 2010/01/09 10:45:32 espie Exp $ # # Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org> # @@ -106,7 +106,7 @@ sub find_pkg my ($repo, $path); - if ($pkgname =~ m/\//o) { + if ($pkgname =~ m/[\/\:]/o) { ($repo, $path, $pkgname) = OpenBSD::PackageLocator::path_parse($pkgname); } else { |