diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2010-01-09 12:01:58 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2010-01-09 12:01:58 +0000 |
commit | 1b253600a654ecbe35bb1fa8a3085a3ffffd0d08 (patch) | |
tree | 20e9c23b1d5e779cf9cf70c8631694d1589ad404 /usr.sbin/pkg_add/pkg_info | |
parent | 41e450e6bfa5b38165aed04d70496e8dbbb7a6d2 (diff) |
fixed version, somehow I forgot that I use parse to do weird things with
PKG_PATH...
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 2dc5b972b39..2011c5c1214 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.87 2010/01/09 11:26:58 espie Exp $ +# $OpenBSD: pkg_info,v 1.88 2010/01/09 12:01:57 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 { |