Changeset 25033
- Timestamp:
- 2007-05-11 23:17:27 (19 months ago)
- Location:
- trunk/base
- Files:
-
- 3 modified
-
ChangeLog (modified) (1 diff)
-
src/darwinports1.0/darwinports.tcl (modified) (3 diffs)
-
src/port1.0/portutil.tcl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/ChangeLog
r25025 r25033 6 6 7 7 (unreleased): 8 9 - Evaluate variants at dportopen instead of dportexec. This ensures that 10 the portfile represents the proper information if queried before targets 11 are executed. It also prevents variants from being executed twice if multiple 12 targets are executed separately on the portfile (ticket #11296, eridius r25033). 8 13 9 14 - Fix copy and move commands (eridius r25024). -
trunk/base/src/darwinports1.0/darwinports.tcl
r24879 r25033 814 814 815 815 $workername eval source Portfile 816 817 # evaluate the variants 818 if {[$workername eval eval_variants variations] != 0} { 819 dportclose $dport 820 error "Error evaluating variants" 821 } 816 822 817 823 ditem_key $dport provides [$workername eval return \$portname] … … 1035 1041 # xxx: set the work path? 1036 1042 set workername [ditem_key $dport workername] 1037 if {![catch {$workername eval eval_variants variations $target} result] && $result == 0 &&1043 if {![catch {$workername eval check_variants variations $target} result] && $result == 0 && 1038 1044 ![catch {$workername eval eval_targets $target} result] && $result == 0} { 1039 1045 # If auto-clean mode, clean-up after dependency install … … 1062 1068 1063 1069 set workername [ditem_key $dport workername] 1064 1065 # XXX: move this into dportopen?1066 if {[$workername eval eval_variants variations $target] != 0} {1070 1071 # check variants 1072 if {[$workername eval check_variants variations $target] != 0} { 1067 1073 return 1 1068 1074 } -
trunk/base/src/port1.0/portutil.tcl
r25032 r25033 1366 1366 } 1367 1367 1368 proc eval_variants {variations target} {1368 proc eval_variants {variations} { 1369 1369 global all_variants ports_force PortInfo 1370 1370 set dlist $all_variants 1371 set result 01372 1371 upvar $variations upvariations 1373 1372 set chosen [choose_variants $dlist upvariations] … … 1400 1399 return 1 1401 1400 } 1401 1402 return 0 1403 } 1404 1405 proc check_variants {variations target} { 1406 global ports_force PortInfo 1407 upvar $variations upvariations 1408 set result 0 1409 set portname $PortInfo(name) 1402 1410 1403 1411 # Make sure the variations match those stored in the statefile.

