Changeset 567 for CMT/HEAD


Ignore:
Timestamp:
Apr 18, 2011, 5:09:27 PM (13 years ago)
Author:
rybkin
Message:

See C.L. 450

Location:
CMT/HEAD
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/ChangeLog

    r566 r567  
     12011-04-18    <rybkin@lal.in2p3.fr> 450
     2
     3        * source/cmt_parser.cxx: In class Cmt, in function do_check_configuration,
     4        if current use is outside CMTPATH (and action is not action_setup) issue
     5        warning or set error, provided [CMT]PEDANTIC environment variable is set,
     6        thus adding this check to "cmt check configuration" command
     7       
    182011-04-15    <rybkin@lal.in2p3.fr> 449
    29
     
    714        set_auto_imports to ensure valid uses are followed. Make use of
    815        is_head_version, in functions reach_package, add, of
    9         alternate_is_head_versions, in function select_alternate to ensure
    10         head version satisfies any request and takes priority
     16        alternate_is_head_versions, in function select_alternate, to ensure
     17        head version satisfies any request and takes precedence
    1118       
    12192011-04-12    <rybkin@lal.in2p3.fr> 448
  • CMT/HEAD/source/cmt_parser.cxx

    r565 r567  
    27042704
    27052705  set_standard_macros ();
     2706
     2707  const Use& use = Use::current ();
     2708  if (use.located ())
     2709    {
     2710      if (action_setup != get_action () &&
     2711          0 == Project::find_in_cmt_paths (use.real_path).size ())
     2712        {
     2713          if (0 == CmtSystem::getenv ("CMTPEDANTIC").size () &&
     2714              0 == CmtSystem::getenv ("PEDANTIC").size ())
     2715            CmtMessage::warning
     2716              (CmtError::get_error_name (CmtError::configuration_error)
     2717               + ": Current use outside CMTPATH: " + use.get_info ());
     2718          else
     2719            CmtError::set(CmtError::configuration_error,
     2720                          "Current use outside CMTPATH: " + use.get_info ());
     2721        }
     2722    }
     2723  else
     2724    {
     2725      CmtMessage::verbose
     2726        (CmtError::get_error_name (CmtError::configuration_error)
     2727         + ": Current use not located: " + use.get_info ());
     2728    }
    27062729
    27072730  static CmtSystem::cmt_string_vector tags;
Note: See TracChangeset for help on using the changeset viewer.