diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2008-07-15 10:48:15 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2008-07-15 10:48:15 +0000 |
commit | 8f6a66da6d7f02a656f3ff02fad6ff449d1b92c1 (patch) | |
tree | 0129eda384ef08e581ef71d5fe84a7b3d3222217 /regress/usr.sbin/pkg_add | |
parent | 25a9ac1a385a5ac326b8adebf374a63b6a31033a (diff) |
deprecate package names without version numbers.
Diffstat (limited to 'regress/usr.sbin/pkg_add')
-rw-r--r-- | regress/usr.sbin/pkg_add/check-name | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/regress/usr.sbin/pkg_add/check-name b/regress/usr.sbin/pkg_add/check-name index 83a46b58211..fb6e6317a86 100644 --- a/regress/usr.sbin/pkg_add/check-name +++ b/regress/usr.sbin/pkg_add/check-name @@ -1,9 +1,9 @@ #! /usr/bin/perl -# $OpenBSD: check-name,v 1.5 2007/05/15 10:17:01 espie Exp $ +# $OpenBSD: check-name,v 1.6 2008/07/15 10:48:14 espie Exp $ # Written by Marc Espie # Public domain -use Test::Simple tests => 12; +use Test::Simple tests => 11; use OpenBSD::Search; use OpenBSD::PackageName; @@ -34,12 +34,6 @@ sub check_pkgspec ok(check_list(\@list, check_pkgspec('py-MxDateTime->=2.0-py2.1', @list)), 'flavor with number'); -# packages without a version number should work -my @list = qw(hugs98-Nov2003); -ok(check_list(\@list, - check_pkgspec('hugs98-Nov2003', @list)), - 'no version number'); - @list = qw(foo-1.0 foo-1.0p0 foo-1.0p25); ok(check_list([qw(foo-1.0)], check_pkgspec('foo-<1.0p0', @list)), |