Skip to content
Permalink
Browse files

Don't build the target port twice.

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@2086 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Kevin Van Vechten
Kevin Van Vechten committed Feb 26, 2003
1 parent 49eb281 commit 5eba82da2dfbee09ba074fd35fb63080192bc300
Showing with 18 additions and 8 deletions.
  1. +18 −8 src/darwinports1.0/darwinports.tcl
@@ -315,18 +315,28 @@ proc dportexec {dport target} {
dportdepends $dport 1 1
# Select out the dependents along the critical path
# Select out the dependents along the critical path,
# but exclude this dport, we might not be installing it.
set dlist [dlist_append_dependents $darwinports::open_dports $dport {}]
# install them
set dlist [dlist_eval $darwinports::open_dports _dporttest [list _dportexec "install"]]
}
dlist_delete dlist $dport
if {$dlist != {}} {
ui_error "$target terminated due to an error while installing a dependency."
} else {
return [$workername eval eval_targets $target]
# install them
set dlist [dlist_eval $dlist _dporttest [list _dportexec "install"]]
if {$dlist != {}} {
ui_error "The following dependencies failed to build:"
foreach ditem $dlist {
ui_error "[ditem_key $ditem provides]" nonl
}
ui_error ""
return 1
}
}
# Build this port with the specified target
return [$workername eval eval_targets $target]
return 0
}

0 comments on commit 5eba82d

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