Changeset 665 for CMT


Ignore:
Timestamp:
Jan 25, 2014, 10:05:32 PM (10 years ago)
Author:
rybkin
Message:

See C.L. 523

Location:
CMT/HEAD
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/ChangeLog

    r663 r665  
     12014-01-25    <rybkin@lal.in2p3.fr> 523
     2
     3        * source/cmt_symbol.cxx: In class SetBuilder, PathBuilder functions build,
     4        do not set error for environment variable access if set or path is defined
     5        in requirements
     6        * source/cmt_error.cxx: In class CmtError function print, output diagnostic
     7        messages for error called "warning" as warnings
     8       
    192014-01-10    <rybkin@lal.in2p3.fr> 522
    210
     
    298306        fill_selection, fill_exclusion functions to implement enhanced handling of
    299307        special CMTHOME, CMTUSERCONTEXT projects packages (visited if in current
    300         project only) and and special depth values (0: CMTUSERCONTEXT project
     308        project only) or with special depth values (0: CMTUSERCONTEXT project
    301309        packages only, -1: CMTHOME project packages only), in
    302310        do_check_configuration function, check tags from CmtContext m_extra_tags,
     
    310318        use_current_package, use_extra_file functions do not attempt to locate
    311319        current package if current use located already, factor out
    312         Pattern::apply_all_globalsize and Tag::restore_tree calls into separate
     320        Pattern::apply_all_globals and Tag::restore_tree calls into separate
    313321        apply_globals function called after all requirements are read, in
    314322        use_special_requirements function set special use style, structuring_style,
  • CMT/HEAD/source/cmt_error.cxx

    r663 r665  
    174174  cerr << "CMT> Error: " << get_error_name (e.get_code ()) << " : " << e.get_text () << endl;
    175175  */
    176   CmtMessage::error (get_last_error ());
     176  if (CmtError::get_last_error_code () != CmtError::warning)
     177    CmtMessage::error (get_last_error ());
     178  else
     179    CmtMessage::warning (get_last_error ());
    177180}
    178181
  • CMT/HEAD/source/cmt_symbol.cxx

    r663 r665  
    23692369                resolve_value (new_value, symbol.name, temp);
    23702370                temp = new_value;
     2371
     2372                // We clear the error since the set is defined in requirements
     2373                // and the environment variable ought not to have been used
     2374                if (CmtError::get_last_error_code () == CmtError::warning &&
     2375                    CmtError::get_last_error () ==
     2376                    CmtError::get_error_name (CmtError::warning) + ": " "getenv (" + symbol.name + ") denied")
     2377                  CmtError::clear ();
    23712378              }
    23722379            else if (temp == "")
     
    23912398                    CmtError::set (CmtError::warning,
    23922399                                   "getenv (" + symbol.name + ") denied");
    2393                     return "";
     2400                    //              return "";
     2401                    // We will clear the error if the set is defined in requirements
    23942402                  }
    23952403              }
     
    26802688                    CmtError::set (CmtError::warning,
    26812689                                   "getenv (" + symbol.name + ") denied");
    2682                     return "";
     2690                    //              return "";
     2691                    // We will clear the error if the path is defined in requirements
    26832692                  }
    26842693
     
    27222731                //temp = new_value;
    27232732                filter_path_value (symbol, temp_vector);
     2733
     2734                // We clear the error since the path is defined in requirements
     2735                // and the environment variable ought not to have been used
     2736                if (CmtError::get_last_error_code () == CmtError::warning &&
     2737                    CmtError::get_last_error () ==
     2738                    CmtError::get_error_name (CmtError::warning) + ": " "getenv (" + symbol.name + ") denied")
     2739                  CmtError::clear ();
    27242740              }
    27252741
     
    38193835                  {
    38203836                    // print error occurred before value expansion
    3821                     CmtMessage::error (msg);
     3837                    if (code != CmtError::warning)
     3838                      CmtMessage::error (msg);
     3839                    else
     3840                      CmtMessage::warning (msg);
    38223841                  }
    38233842                // We keep CmtError::warning to indicate that
Note: See TracChangeset for help on using the changeset viewer.