Changeset be70fb2 in tol for tolbase/lib/toltk


Ignore:
Timestamp:
Dec 15, 2011, 5:39:11 PM (15 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
48947f4
Parents:
2d896ea
Message:

refs #1191, packages can be exported also from remote repository

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

File:
1 edited

Legend:

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

    r2d896ea rbe70fb2  
    916916      }
    917917    }
    918     if { $pkgInfo(lastlocal) ne "" } {
    919       lappend listEXP $pkgInfo(lastlocal)
    920     }
     918    lappend listEXP [ list $pkgInfo(lastremote) $nodesInfo($nid,status) ]
    921919  }
    922920  # next process the list of pkgver
    … …  
    938936      }
    939937    }
    940     if { [ lsearch $listEXP $pkg ] == -1 &&
    941          $nodesInfo($nid,status) ne "new"} {
    942       lappend listEXP $pkg
    943     }
    944 
     938    if { [ lsearch $listEXP $pkg ] == -1 } {
     939      lappend listEXP [ list $pkg $nodesInfo($nid,status) ]
     940    }
    945941  }
    946942  # install list
    … …  
    977973  $w add separator
    978974  if { [ llength $listEXP ] == 1 } {
    979     $w add command -label [ mc "Export %s" [ lindex $listEXP 0 ] ] \
     975    $w add command -label [ mc "Export %s" [ lindex [ lindex $listEXP 0 ] 0 ] ] \
    980976        -command [ list ::TolPkgGUI::ExportPackageVersion [ lindex $listEXP 0 ] ]
    981977  } elseif { [ llength $listEXP ] > 1 } {
Note: See TracChangeset for help on using the changeset viewer.