Changeset 457 for CMT


Ignore:
Timestamp:
May 13, 2008, 12:25:12 PM (16 years ago)
Author:
rybkin
Message:

See C.L. 358

Location:
CMT/HEAD
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/ChangeLog

    r456 r457  
     12008-05-13    <rybkin@lal.in2p3.fr> 358
     2       
     3        * source/cmt_project.cxx: Add the real CMTPATH of project to the paths returned
     4        by Project::fill_selection ()
     5        * source/cmt_parser.cxx: When cmt broadcast is run, ensure that the current package
     6        is not skipped due to symlinks in the paths
     7       
    182008-04-21    <rybkin@lal.in2p3.fr> 357
    29       
  • CMT/HEAD/source/cmt_parser.cxx

    r453 r457  
    14401440  //if (command.substr (0, 3) == "cmt") is_cmt = true;
    14411441
     1442  cmt_string curuse = CmtSystem::pwd ();
    14421443  if (all_packages)
    14431444    {
     
    15051506          }
    15061507
     1508        curuse = s;
     1509
    15071510        cmt_string& v = versions.add ();
    15081511        v = use->version;
     
    15321535      bool excluded = false;
    15331536
    1534       if (path_selections.size () > 0)
     1537      /**
     1538         Ensure that the current package is not skipped
     1539         due to symlinks in the paths
     1540       */
     1541      //      if (path_selections.size () > 0)
     1542      if (path_selections.size () > 0 && s != curuse)
    15351543        {
    15361544          selected = false;
  • CMT/HEAD/source/cmt_project.cxx

    r437 r457  
    987987      const cmt_string& p = project.get_cmtpath ();
    988988      const cmt_string& pwd = project.get_cmtpath_pwd ();
     989      const cmt_string& p_real = project.get_cmtpath_real ();
    989990      const cmt_string& src = project.get_cmtpath_source ();
    990991
     
    995996              cmt_string& s1 = path_selections.add ();
    996997              s1 = p;
    997               cmt_string& s2 = path_selections.add ();
    998               s2 = pwd;
     998              if (pwd != p)
     999                {
     1000                  cmt_string& s2 = path_selections.add ();
     1001                  s2 = pwd;
     1002                }
     1003              if (p_real != p && p_real != pwd)
     1004                {
     1005                  cmt_string& s3 = path_selections.add ();
     1006                  s3 = p_real;
     1007                }
    9991008              depth--;
    10001009
Note: See TracChangeset for help on using the changeset viewer.