112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
variable baseUri
variable downloadUri
variable persistentDirectory
variable quiet
if {$persistent} then {
set downloadRootDirectory [file join $persistentDirectory]
} elseif {[info exists ::env(PKGD_TEMP)]} then {
set downloadRootDirectory [file join $::env(PKGD_TEMP) pkgr]
} elseif {[info exists ::env(TEMP)]} then {
set downloadRootDirectory [file join $::env(TEMP) pkgr]
} elseif {[info exists ::env(TMP)]} then {
set downloadRootDirectory [file join $::env(TMP) pkgr]
} else {
error "please set PKGD_TEMP (via environment) to temporary directory"
}
set downloadDirectories [list]
foreach fileName $fileNames {
if {[string length $fileName] == 0 || \
[file pathtype $fileName] ne "relative"} then {
|
>
>
>
|
|
|
|
|
|
|
|
>
|
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
|
variable baseUri
variable downloadUri
variable persistentDirectory
variable quiet
if {$persistent} then {
set downloadRootDirectory [file join $persistentDirectory]
} else {
global env
if {[info exists env(PKGD_TEMP)]} then {
set downloadRootDirectory [file join $env(PKGD_TEMP) pkgr]
} elseif {[info exists env(TEMP)]} then {
set downloadRootDirectory [file join $env(TEMP) pkgr]
} elseif {[info exists env(TMP)]} then {
set downloadRootDirectory [file join $env(TMP) pkgr]
} else {
error "please set PKGD_TEMP (via environment) to temporary directory"
}
}
set downloadDirectories [list]
foreach fileName $fileNames {
if {[string length $fileName] == 0 || \
[file pathtype $fileName] ne "relative"} then {
|