Changeset 9c7016b in tol


Ignore:
Timestamp:
Nov 28, 2011, 11:48:29 AM (15 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
a8dad5c
Parents:
e6da686
Message:

Refs #1345

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/stdlib/general/TolPackage/client.tol

    re6da686 r9c7016b  
    515515  ok
    516516};
     517
     518//////////////////////////////////////////////////////////////////////////////
     519Text _msg.cannotFindPackage(Text package)
     520//////////////////////////////////////////////////////////////////////////////
     521{
     522  Text minTolVersion = GetMinTolVersionForPackage(package);
     523  If(minTolVersion=="",
     524  {
     525    Set rep = TolConfigManager::Config::Upgrading::TolPackage::Repositories;
     526    I2(
     527    "Cannot find package "+package+" in any repository for any TOL "
     528    "version.",
     529    "No se encuentra el paquete "+package+" en ningún repositorio "
     530    "para ninguna versión de TOL.")+"\n"+
     531    I2("Instaled repositories","Repositorios instalados")+" : \n"+
     532    SetSum(EvalSet(rep,Text(Text r) { "  "<<r+"\n" }))
     533  },
     534  {
     535    I2(
     536    "Cannot find package "+package+" for current TOL version ",
     537    "No se encuentra el paquete "+package+" "
     538    "para la versión de TOL en curso ")+TolPackage::_.currentTolVersion+
     539    ".\n"+I2("You needs to use ", "Es necesario usar ")+minTolVersion
     540  })
     541};
     542
    517543
    518544//////////////////////////////////////////////////////////////////////////////
    … …  
    558584        If(showError,
    559585        {
    560           Text minTolVersion = GetMinTolVersionForPackage(package);
    561           If(minTolVersion=="",
    562           Error(I2(
    563             "Cannot find package "+package+" in any repository for any TOL "
    564             "version.",
    565             "No se encuentra el paquete "+package+" en ningún repositorio "
    566             "para ninguna versión de TOL.")),
    567           Error(I2(
    568             "Cannot find package "+package+" in any repository for current "
    569             "TOL version ",
    570             "No se encuentra el paquete "+package+" en ningún repositorio "
    571             "para la versión de TOL en curso ")+TolPackage::_.currentTolVersion+
    572             ".\n"+I2("You needs to use ", "Es necesario usar ")+minTolVersion))
    573         })
     586          Error("[RemoteInstall ] "+_msg.cannotFindPackage(package))
     587        });
     588        false
    574589      },
    575590      {
    … …  
    622637    {
    623638      Real found = FindIndexByName(_.versSyncInfo, pkg);
    624       Date If(!found, WriteLn("[RemoteUpdateVersSyncInfo] "+I2(
    625         "Cannot find remote image of local package "+pkg+
    626         " in any repository." ,
    627         "No se encuentra la imagen remota del paquete local "+pkg+
    628         " en ningún repositorio"),"W"),
     639      Date If(found,
    629640      {
    630641        Date gmt = Copy(NowGmt);
    … …  
    674685      Text pkg = Tokenizer(cls[1],".")[1];
    675686      Real found = FindIndexByName(_.packSyncInfo, pkg);
    676       Real If(!found,
    677       {
    678         If(showWarnings,
    679           WriteLn(_MID+I2(
    680           "Cannot find remote image of local package "+pkg+
    681           " in any repository." ,
    682           "No se encuentra la imagen remota del paquete local "+pkg+
    683           " en ningún repositorio"),"W"));
    684         False
    685       },
     687      Real If(found,
    686688      {
    687689        Set ord = Sort(cls,Real ev.sort(Text a, Text b) {
Note: See TracChangeset for help on using the changeset viewer.