remove hack to recognize .0.0.

This commit is contained in:
espie 2006-09-18 12:56:22 +00:00
parent f63e804b78
commit aaa9a0cd63

View File

@ -1,5 +1,5 @@
#! /usr/bin/perl #! /usr/bin/perl
# $OpenBSD: resolve-lib,v 1.15 2006/09/18 11:30:08 espie Exp $ # $OpenBSD: resolve-lib,v 1.16 2006/09/18 12:56:22 espie Exp $
# #
# Copyright (c) 2001, 2005 Marc Espie <espie@openbsd.org> # Copyright (c) 2001, 2005 Marc Espie <espie@openbsd.org>
# #
@ -60,11 +60,7 @@ sub parse_spec_versions
$spec = $`; $spec = $`;
$req->{noshared} = 1; $req->{noshared} = 1;
} else { } else {
if ($spec =~ m/\.0\.0$/) { if ($spec =~ m/\.(\>?)\=(\d+)\.(\d+)$/) {
$req->{major} = 0;
$req->{minor} = 0;
$spec = $`;
} elsif ($spec =~ m/\.(\>?)\=(\d+)\.(\d+)$/) {
$req->{major} = $2; $req->{major} = $2;
$req->{minor} = $3; $req->{minor} = $3;
$spec = $`; $spec = $`;