Changeset b83b8ed3 in tol for tolbase/lib/toltk/tolpkg.tcl


Ignore:
Timestamp:
Feb 8, 2012, 6:41:22 PM (15 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
8bbfd4d
Parents:
72b4d96
Message:

refs #1417, se corrige un error cuando la ruta de instalación de los paquetes tiene espacio en el nombre, más traducciones

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@4080 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tolbase/lib/toltk/tolpkg.tcl

    r72b4d96 rb83b8ed3  
    2525}
    2626
     27proc ::TolPkg::GetLocalRoot { } {
     28  return [ file normalize \
     29               [ lindex [ toltcl::eval { Text TolPackage::_.localRoot } ] 0 ] ]
     30}
     31
     32proc ::TolPkg::GetClientPath { } {
     33  return [ file join [ GetLocalRoot ] "Client" ]
     34}
     35
    2736proc ::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 ]
    3138}
    3239
    … …  
    6774
    6875proc ::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" ]
    7277  if { ![ file exists $oza ] || ![ file readable $oza ] } {
    7378    return {}
    … …  
    108113
    109114proc ::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" ]
    113116  if { ![ file exists $oza ] || ![ file readable $oza ] } {
    114117    return {}
    … …  
    138141
    139142proc ::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 ]
    143144  set dirs [ glob -nocomplain -tail -dir $clientRoot -types {d r} * ]
    144145  set pkgsInfo {}
Note: See TracChangeset for help on using the changeset viewer.