Changeset 526 for CMT


Ignore:
Timestamp:
Nov 13, 2009, 11:56:56 AM (15 years ago)
Author:
rybkin
Message:

See C.L. 413

Location:
CMT/HEAD
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/ChangeLog

    r525 r526  
     12009-11-13    <rybkin@lal.in2p3.fr> 413
     2
     3        * source/cmt_project.h: In class Project, restore function get_container
     4        returning (reference to) container object
     5        * source/cmt_project.cxx: Implement the modified function
     6        * source/cmt_syntax.cxx: In function SyntaxParser::parse_requirements,
     7        apply tag container_package if the current package is the container package
     8        of the project
     9       
    1102009-11-06    <rybkin@lal.in2p3.fr> 412
    211
  • CMT/HEAD/source/cmt_project.cxx

    r525 r526  
    18001800
    18011801//----------------------------------------------------------
     1802const Use& Project::get_container () const
     1803{
     1804  return (m_container);
     1805}
     1806
     1807//----------------------------------------------------------
    18021808const cmt_string& Project::get_cmtpath () const
    18031809{
  • CMT/HEAD/source/cmt_project.h

    r525 r526  
    140140  const cmt_string& get_container_version () const;
    141141  const cmt_string& get_container_path () const;
    142   //  const Use& get_container () const;
     142  const Use& get_container () const;
    143143  const cmt_string& get_cmtpath () const;
    144144  const cmt_string& get_cmtpath_real () const;
  • CMT/HEAD/source/cmt_syntax.cxx

    r525 r526  
    14641464             
    14651465            }
     1466          // Apply tag container_package if
     1467          // the current package is the container package of the project
     1468          if (use == &(Use::current ()) &&
     1469              use->get_package_name() == p->get_container ().get_package_name () &&
     1470              use->version == p->get_container ().version)
     1471            {
     1472              cmt_string name ("container_package");
     1473              cmt_string context ("PROJECT " + p->get_name () + " ");
     1474              Tag* tag = Tag::find (name);
     1475              if (tag == 0)
     1476                {
     1477                  tag = Tag::add (name, PriorityUserTag, context, use);
     1478                }
     1479              tag->mark ();
     1480            }
    14661481        }                 
    14671482      use->close_scope_sections ();
Note: See TracChangeset for help on using the changeset viewer.