diff options
author | des <des@FreeBSD.org> | 2001-08-14 13:58:56 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2001-08-14 13:58:56 +0000 |
commit | f61154899249ec3154a0016bcaddcf7c5c61fb21 (patch) | |
tree | 10df3c4bb6210ab551926d5f1f921226437f8e8d /ports-mgmt/porteasy | |
parent | bb47baff363e954fc12d51ba333b018da08c3d3b (diff) | |
download | FreeBSD-ports-f61154899249ec3154a0016bcaddcf7c5c61fb21.zip FreeBSD-ports-f61154899249ec3154a0016bcaddcf7c5c61fb21.tar.gz |
Fix handling of unconditional dependencies
Diffstat (limited to 'ports-mgmt/porteasy')
-rw-r--r-- | ports-mgmt/porteasy/Makefile | 2 | ||||
-rw-r--r-- | ports-mgmt/porteasy/src/porteasy.pl | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/ports-mgmt/porteasy/Makefile b/ports-mgmt/porteasy/Makefile index 2f06659..2b73d7d 100644 --- a/ports-mgmt/porteasy/Makefile +++ b/ports-mgmt/porteasy/Makefile @@ -8,7 +8,7 @@ # PORTNAME= porteasy -PORTVERSION= 2.4 +PORTVERSION= 2.5 CATEGORIES= misc MASTER_SITES= # none DISTFILES= # none diff --git a/ports-mgmt/porteasy/src/porteasy.pl b/ports-mgmt/porteasy/src/porteasy.pl index 230ab2e..eeb3f59 100644 --- a/ports-mgmt/porteasy/src/porteasy.pl +++ b/ports-mgmt/porteasy/src/porteasy.pl @@ -33,7 +33,7 @@ use strict; use Fcntl; use Getopt::Long; -my $VERSION = "2.4"; +my $VERSION = "2.5"; my $COPYRIGHT = "Copyright (c) 2000 Dag-Erling Smørgrav. All rights reserved."; # Constants @@ -550,11 +550,14 @@ sub find_dependencies($) { or bsd::errx(1, "failed to obtain dependency list"); %depends = (); foreach $item (split(' ', $dependvars)) { - if ($item !~ m|^([^:]+):$portsdir/([^/:]+/[^/:]+)/?(:[^:]+)?$|) { + if ($item !~ m|^(?:([^:]+):)?$portsdir/([^/:]+/[^/:]+)/?(:[^:]+)?$|) { bsd::warnx("invalid dependency: %s", $item); + next; } ($lhs, $rhs) = ($1, $2); - if ($exclude) { + # XXX this isn't quite right; lhs-less dependencies should be + # XXX checked against /var/db/pkg or something. + if ($exclude && defined($lhs)) { if ($have_dep{$rhs}) { next; } |