Changeset cc468c0 in tol


Ignore:
Timestamp:
Oct 19, 2010, 9:40:19 AM (16 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
522fbed
Parents:
08d3a10
Message:

More details about possible updates and upgrades on RemoteUpdatePackSyncInfo

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

File:
1 edited

Legend:

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

    r08d3a10 rcc468c0  
    438438//////////////////////////////////////////////////////////////////////////////
    439439{
    440   Text _MID = "TolPackage::Client::[RemoteUpdatePackSyncInfo]\n";
     440  Text _MID = "TolPackage::Client::[RemoteUpdatePackSyncInfo] ";
    441441  If(TolConfigManager::Config::Upgrading::TolPackage::LocalOnly, 0, {
    442442  Set repositories =
    … …  
    480480  Set _.packForUpdate := Select(_.packSyncInfo, Real(TolPackage::@PackageSynchro pkg)
    481481  {
    482     And(pkg->co_last_version_local != "",
     482    Real need = And(pkg->co_last_version_local != "",
    483483        pkg->co_last_version_local == pkg->co_last_version_remote, 
    484         pkg->dh_release_date_local <  pkg->dh_release_date_remote)   
     484        pkg->dh_release_date_local <  pkg->dh_release_date_remote);
     485    If(And(showWarnings,need),
     486    {
     487      WriteLn("  Local package "+pkg->co_last_version_local+
     488              " created at "<<pkg->dh_release_date_local+
     489              " could be updated to newer remote patch since "+pkg->dh_release_date_remote)
     490    });
     491    need
    485492  });
    486493  If(And(showWarnings,Card(_.packForUpdate)),
    487494  {
    488     WriteLn(_MID+"There are "<<Card(_.packForUpdate)+" packages that you can update "
    489             "from remote repositories to new releases of the same version.\n"
     495    WriteLn(_MID+"There are "<<Card(_.packForUpdate)+" packages that you could update "
     496            "from remote repositories to new patches of the same version.\n"
    490497            "You can view them at:\n "
    491498            "  Set TolPackage::Client::_.packForUpdate\n"
    492             "You can update all them running this TOL sentence: \n"
     499            "You could update all them running this TOL sentence: \n"
    493500            "  Set TolPackage::Client::RemoteUpdateAll(0)\n",
    494501            "W")
    … …  
    496503  Set _.packForUpgrade := Select(_.packSyncInfo, Real(TolPackage::@PackageSynchro pkg)
    497504  {
    498     And(pkg->co_last_version_local != "",
    499         pkg->co_last_version_local < pkg->co_last_version_remote)   
     505    Real need = And(pkg->co_last_version_local != "",
     506        pkg->co_last_version_local < pkg->co_last_version_remote);
     507    If(And(showWarnings,need),
     508    {
     509      WriteLn("  Local package "+pkg->co_last_version_local+
     510              " could be upgraded to "<<pkg->co_last_version_remote)
     511    });
     512    need
    500513  });
    501514  If(And(showWarnings,Card(_.packForUpgrade)),
    502515  {
    503     WriteLn(_MID+"There are "<<Card(_.packForUpgrade)+" packages that you can upgrade "
     516    WriteLn(_MID+"There are "<<Card(_.packForUpgrade)+" packages that you could upgrade "
    504517            "from remote repositories to new versions.\n"
    505518            "You can view them at:\n "
Note: See TracChangeset for help on using the changeset viewer.