Changeset 444780d in tol
- Timestamp:
- Oct 20, 2010, 4:04:11 PM (16 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- a8c7b37
- Parents:
- 522fbed
- File:
-
- 1 edited
-
tol/stdlib/general/TolPackage/client.tol (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/stdlib/general/TolPackage/client.tol
r522fbed r444780d 442 442 Set repositories = 443 443 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) 445 445 { 446 446 Text pkgInfo = GetUrlContents(rep+"?" … … 451 451 Real SetIndexByName(_.packSyncInfo); 452 452 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) 454 454 { 455 455 Compare(Tokenizer(a,".")[1], Tokenizer(b,".")[1]) 456 456 }); 457 Set EvalSet(verCls, Real (Set cls)457 Set EvalSet(verCls, Real ev.check(Set cls) 458 458 { 459 459 Text pkg = Tokenizer(cls[1],".")[1]; 460 460 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( 462 464 "Cannot find remote image of local package "+pkg+ 463 465 " in any repository." , 464 466 "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) }); 468 472 Text ver = ord[1]; 469 473 Date gmt = Copy(NowGmt); … … 473 477 Date release.loc = FileTime(oza); 474 478 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 477 482 }); 478 483 True … … 485 490 If(And(showWarnings,need), 486 491 { 487 WriteLn(" Local package " +pkg->co_last_version_local+492 WriteLn(" Local package "<<pkg->co_last_version_local+ 488 493 " 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) 490 495 }); 491 496 need … … 507 512 If(And(showWarnings,need), 508 513 { 509 WriteLn(" Local package " +pkg->co_last_version_local+514 WriteLn(" Local package "<<pkg->co_last_version_local+ 510 515 " could be upgraded to "<<pkg->co_last_version_remote) 511 516 });
Note: See TracChangeset
for help on using the changeset viewer.
