223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
|
}
proc get_extensions {server {limitos "*"} {limitcpu "*"}} {
upvar ::teapotclient::osTeapotToLocal osTeapotToLocal
upvar ::teapotclient::cpuTeapotToLocal cpuTeapotToLocal
file mkdir $::teapotclient::pkgcachedir
set cachefile [file join $::teapotclient::pkgcachedir TEAPOTINFO]
set currtime [clock seconds]
if {[file exists $cachefile]} {
catch {
set fd [open $cachefile r]
set data [read $fd]
|
|
|
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
|
}
proc get_extensions {server {limitos "*"} {limitcpu "*"}} {
upvar ::teapotclient::osTeapotToLocal osTeapotToLocal
upvar ::teapotclient::cpuTeapotToLocal cpuTeapotToLocal
file mkdir $::teapotclient::pkgcachedir
set cachefile [file join $::teapotclient::pkgcachedir TEAPOTINFO-[::md5::md5 -hex $server]]
set currtime [clock seconds]
if {[file exists $cachefile]} {
catch {
set fd [open $cachefile r]
set data [read $fd]
|