Changeset b83b8ed3 in tol for tolbase/lib/toltk/tolpkg.tcl
- Timestamp:
- Feb 8, 2012, 6:41:22 PM (15 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 8bbfd4d
- Parents:
- 72b4d96
- File:
-
- 1 edited
-
tolbase/lib/toltk/tolpkg.tcl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tolbase/lib/toltk/tolpkg.tcl
r72b4d96 rb83b8ed3 25 25 } 26 26 27 proc ::TolPkg::GetLocalRoot { } { 28 return [ file normalize \ 29 [ lindex [ toltcl::eval { Text TolPackage::_.localRoot } ] 0 ] ] 30 } 31 32 proc ::TolPkg::GetClientPath { } { 33 return [ file join [ GetLocalRoot ] "Client" ] 34 } 35 27 36 proc ::TolPkg::GetPkgDirectory { p } { 28 set localRoot [ file normalize \ 29 [ toltcl::eval { Text TolPackage::_.localRoot } ] ] 30 return [ file join $localRoot "Client" $p ] 37 return [ file join [ GetClientPath ] $p ] 31 38 } 32 39 … … 67 74 68 75 proc ::TolPkg::GetPkgSyncInfo { } { 69 set localRoot [ file normalize \ 70 [ toltcl::eval { Text TolPackage::_.localRoot } ] ] 71 set oza [ file join $localRoot "Client/PackSyncInfo.oza" ] 76 set oza [ file join [ GetClientPath ] "PackSyncInfo.oza" ] 72 77 if { ![ file exists $oza ] || ![ file readable $oza ] } { 73 78 return {} … … 108 113 109 114 proc ::TolPkg::GetVersSyncInfo { } { 110 set localRoot [ file normalize \ 111 [ toltcl::eval { Text TolPackage::_.localRoot } ] ] 112 set oza [ file join $localRoot "Client/VersSyncInfo.oza" ] 115 set oza [ file join [ GetClientPath ] "VersSyncInfo.oza" ] 113 116 if { ![ file exists $oza ] || ![ file readable $oza ] } { 114 117 return {} … … 138 141 139 142 proc ::TolPkg::GetLocalPackages { } { 140 set localRoot [ file normalize \ 141 [ lindex [ toltcl::eval { Text TolPackage::_.localRoot } ] 0 ] ] 142 set clientRoot [ file join $localRoot Client ] 143 set clientRoot [ GetClientPath ] 143 144 set dirs [ glob -nocomplain -tail -dir $clientRoot -types {d r} * ] 144 145 set pkgsInfo {}
Note: See TracChangeset
for help on using the changeset viewer.
