summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2002-12-10 19:42:14 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2002-12-10 19:42:14 +0000
commitda434ea3f5c6c45918e1379bfabb31ff8f62107f (patch)
treee869f9b3ec332d89fdb40b23b69ef367c27305d9 /misc
parentFix fetch (diff)
Fix a bug in the dependency processing code that would cause porteasy to
fail to identify the dependencies for some ports (such as print/cups) Approved by: portmgr (kris)
Notes
Notes: svn path=/head/; revision=71510
Diffstat (limited to 'misc')
-rw-r--r--misc/porteasy/Makefile2
-rw-r--r--misc/porteasy/src/porteasy.pl1
2 files changed, 2 insertions, 1 deletions
diff --git a/misc/porteasy/Makefile b/misc/porteasy/Makefile
index e23b4b686441..3ac20f7bc46d 100644
--- a/misc/porteasy/Makefile
+++ b/misc/porteasy/Makefile
@@ -9,7 +9,7 @@
PORTNAME= porteasy
PORTVERSION= 2.7.4
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= misc
MASTER_SITES= # none
DISTFILES= # none
diff --git a/misc/porteasy/src/porteasy.pl b/misc/porteasy/src/porteasy.pl
index 9c84855a76b5..aa009e0860c1 100644
--- a/misc/porteasy/src/porteasy.pl
+++ b/misc/porteasy/src/porteasy.pl
@@ -554,6 +554,7 @@ sub add_dependencies($$@) {
foreach $item (@dependlist) {
$item =~ s|\`([^\`]+)\`|capture(\&cmd, "sh", "-c", $1)|eg;
+ 1 while ($item =~ s|/[^\./]*/\.\./|/|);
if ($item !~ m|^(?:([^:]+):)?$portsdir/([^/:]+/[^/:]+)/?(:[^:]+)?$|) {
bsd::warnx("invalid dependency: %s", $item);
next;