Changeset 444780d in tol


Ignore:
Timestamp:
Oct 20, 2010, 4:04:11 PM (16 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
a8c7b37
Parents:
522fbed
Message:

trazas

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

File:
1 edited

Legend:

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

    r522fbed r444780d  
    442442  Set repositories =
    443443    TolConfigManager::Config::Upgrading::TolPackage::Repositories;
    444   Set _.packSyncInfo := SetConcat(EvalSet(repositories,Set(Text rep)
     444  Set _.packSyncInfo := SetConcat(EvalSet(repositories,Set ev.rep(Text rep)
    445445  {
    446446    Text pkgInfo = GetUrlContents(rep+"?"
    … …  
    451451  Real SetIndexByName(_.packSyncInfo);
    452452  Set verLst = GetDir(TolPackage::Client::_.localRoot)[2];
    453   Set verCls = Classify(verLst,Real(Text a, Text b)
     453  Set verCls = Classify(verLst,Real ev.class(Text a, Text b)
    454454  {
    455455    Compare(Tokenizer(a,".")[1], Tokenizer(b,".")[1])
    456456  });
    457   Set EvalSet(verCls, Real(Set cls)
     457  Set EvalSet(verCls, Real ev.check(Set cls)
    458458  {
    459459    Text pkg = Tokenizer(cls[1],".")[1];
    460460    Real found = FindIndexByName(_.packSyncInfo, pkg);
    461     Date If(And(!found,showWarnings), WriteLn(_MID+I2(
     461    Real If(And(!found,showWarnings),
     462    {
     463      WriteLn(_MID+I2(
    462464      "Cannot find remote image of local package "+pkg+
    463465      " in any repository." ,
    464466      "No se encuentra la imagen remota del paquete local "+pkg+
    465       " en ningún repositorio"),"W"),
    466     {
    467       Set ord = Sort(cls,Real(Text a, Text b) { Compare(b, a) });
     467      " en ningún repositorio"),"W");
     468      False
     469    },
     470    {
     471      Set ord = Sort(cls,Real ev.sort(Text a, Text b) { Compare(b, a) });
    468472      Text ver = ord[1];
    469473      Date gmt = Copy(NowGmt);
    … …  
    473477      Date release.loc = FileTime(oza);
    474478      Date release.gmt = Succ(release.loc,S(0),lag);
    475       _.packSyncInfo[found]->co_last_version_local := ver;
    476       _.packSyncInfo[found]->dh_release_date_local := release.gmt
     479      Date _.packSyncInfo[found]->co_last_version_local := ver;
     480      Date _.packSyncInfo[found]->dh_release_date_local := release.gmt;
     481      True
    477482    });
    478483    True
    … …  
    485490    If(And(showWarnings,need),
    486491    {
    487       WriteLn("  Local package "+pkg->co_last_version_local+
     492      WriteLn("  Local package "<<pkg->co_last_version_local+
    488493              " created at "<<pkg->dh_release_date_local+
    489               " could be updated to newer remote patch since "+pkg->dh_release_date_remote)
     494              " could be updated to newer remote patch since "<<pkg->dh_release_date_remote)
    490495    });
    491496    need
    … …  
    507512    If(And(showWarnings,need),
    508513    {
    509       WriteLn("  Local package "+pkg->co_last_version_local+
     514      WriteLn("  Local package "<<pkg->co_last_version_local+
    510515              " could be upgraded to "<<pkg->co_last_version_remote)
    511516    });
Note: See TracChangeset for help on using the changeset viewer.