Skip to content
Permalink
Browse files

Trap the case where a dependency isn't found.

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@2136 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Kevin Van Vechten
Kevin Van Vechten committed Mar 3, 2003
1 parent 3cb8891 commit 57bbb5c78f02f943c40553353de67e4e2455ceb1
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/darwinports1.0/darwinports.tcl
@@ -322,7 +322,9 @@ proc dportexec {dport target} {
if {$target == "configure" || $target == "build" || $target == "install" ||
$target == "package" || $target == "mpkg"} {
dportdepends $dport 1 1
if {[dportdepends $dport 1 1] != 0} {
return 1
}
# Select out the dependents along the critical path,
# but exclude this dport, we might not be installing it.
@@ -469,6 +471,11 @@ proc dportdepends {dport includeBuildDeps recurseDeps} {
}
}

if {![info exists porturl]} {
ui_error "Dependency '$portname' not found."
return 1
}

set options [ditem_key $dport options]
set variations [ditem_key $dport variations]

0 comments on commit 57bbb5c

Please sign in to comment.
You can’t perform that action at this time.