RCS file: /Volumes/src/cvs/od/proj/darwinports/base/src/darwinports1.0/darwinports.tcl,v
retrieving revision 1.212
diff -u -r1.212 darwinports.tcl
|
|
|
|
| 37 | 37 | |
| 38 | 38 | namespace eval darwinports { |
| 39 | 39 | namespace export bootstrap_options portinterp_options open_dports ui_priorities |
| 40 | | variable bootstrap_options "portdbpath libpath binpath auto_path extra_env sources_conf prefix portdbformat portinstalltype portarchivemode portarchivepath portarchivetype portautoclean porttrace portverbose destroot_umask variants_conf rsync_server rsync_options rsync_dir startupitem_type xcodeversion xcodebuildcmd" |
| 41 | | variable portinterp_options "portdbpath portpath portbuildpath auto_path prefix portsharepath registry.path registry.format registry.installtype portarchivemode portarchivepath portarchivetype portautoclean porttrace portverbose destroot_umask rsync_server rsync_options rsync_dir startupitem_type" |
| | 40 | variable bootstrap_options "portdbpath libpath binpath auto_path extra_env sources_conf prefix portdbformat portinstalltype portarchivemode remotearchiveurl portarchivepath portarchivetype portautoclean porttrace portverbose destroot_umask variants_conf rsync_server rsync_options rsync_dir startupitem_type xcodeversion xcodebuildcmd" |
| | 41 | variable portinterp_options "portdbpath portpath portbuildpath auto_path prefix portsharepath registry.path registry.format registry.installtype portarchivemode remotearchiveurl portarchivepath portarchivetype portautoclean porttrace portverbose destroot_umask rsync_server rsync_options rsync_dir startupitem_type" |
| 42 | 42 | # deferred options are only computed when needed. |
| 43 | 43 | # they are not exported to the trace thread. |
| 44 | 44 | # they are not exported to the interpreter in system_options array. |
| … |
… |
|
| 360 | 360 | global darwinports::portarchivemode |
| 361 | 361 | } |
| 362 | 362 | |
| | 363 | if {[info exists remotearchiveurl]} { |
| | 364 | set darwinports::remotearchiveurl $remotearchiveurl |
| | 365 | global darwinports::remotearchiveurl |
| | 366 | } |
| | 367 | |
| 363 | 368 | # Archive path, where to store/retrieve binary archive packages |
| 364 | 369 | if {![info exists portarchivepath]} { |
| 365 | 370 | set darwinports::portarchivepath [file join $portdbpath packages] |
RCS file: /Volumes/src/cvs/od/proj/darwinports/base/src/package1.0/portunarchive.tcl,v
retrieving revision 1.8
diff -u -r1.8 portunarchive.tcl
|
|
|
|
| 62 | 62 | global ports_force ports_source_only ports_binary_only |
| 63 | 63 | global portname portversion portrevision portvariants portpath |
| 64 | 64 | global unarchive.srcpath unarchive.type unarchive.file unarchive.path |
| | 65 | global remotearchiveurl portverbose remotearchiveurl |
| 65 | 66 | |
| 66 | 67 | # Check mode in case archive called directly by user |
| 67 | 68 | if {[option portarchivemode] != "yes"} { |
| … |
… |
|
| 108 | 109 | if {[file exist ${unarchive.path}]} { |
| 109 | 110 | set found 1 |
| 110 | 111 | break |
| | 112 | } elseif {[string match "http://*" $remotearchiveurl]} { |
| | 113 | set platform [option os.platform] |
| | 114 | set arch [option os.arch] |
| | 115 | set remotefile "${remotearchiveurl}/${platform}/${arch}/${unarchive.file}" |
| | 116 | set fetch_options {} |
| | 117 | if {$portverbose == "yes"} { |
| | 118 | lappend fetch_options "-v" |
| | 119 | } |
| | 120 | |
| | 121 | if {![catch {eval curl fetch $fetch_options {$remotefile} ${unarchive.srcpath}/${unarchive.file}.TMP} result] && |
| | 122 | ![catch {system "mv ${unarchive.srcpath}/${unarchive.file}.TMP ${unarchive.path}"}]} { |
| | 123 | set found 1 |
| | 124 | break |
| | 125 | } else { |
| | 126 | ui_debug "Remote Archive fetching failed: $result" |
| | 127 | exec rm -f ${unarchive.srcpath}/${unarchive.file}.TMP |
| | 128 | } |
| 111 | 129 | } else { |
| 112 | 130 | ui_debug "No [string toupper ${unarchive.type}] archive: ${unarchive.path}" |
| 113 | 131 | } |