Changeset 497


Ignore:
Timestamp:
Apr 29, 2009, 2:29:53 PM (15 years ago)
Author:
rybkin
Message:

See C.L. 392

Location:
CMT/HEAD
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/ChangeLog

    r496 r497  
     12009-04-29    <rybkin@lal.in2p3.fr> 392
     2       
     3        * source/cmt_system.cxx: In function CmtSystem::execute, return -1 on
     4        failure and return status of the command otherwise
     5        * source/cmt_vcs.cxx: Ensure "cmt checkout" command exist status is set to
     6        a nonzero value on error. In particular, in function execute_and_retry, on
     7        failure, exit with the exit status of the last failed command, in function
     8        check_protocol, on failure, exit with 1, also make use of CmtError::set
     9        when appropriate
     10        * mgr/cmt_svn_checkout.py: Catch ImportError exception in case Subversion
     11        Python bindings cannot be imported
     12       
    1132009-04-27    <rybkin@lal.in2p3.fr> 391
    214       
  • CMT/HEAD/mgr/VisualC.nmake

    r483 r497  
    3737build_dependencies=$(cmtexe) -tag=$(tags) build dependencies
    3838build_triggers=$(cmtexe) build triggers
    39 format_dependencies=$(CMTROOT)\mgr\cmt_format_deps.bat /no_stamps
     39format_dependencies=$(CMTROOT)\mgr\cmt_format_deps.bat
    4040implied_library_prefix=-l
    4141implied_library_suffix=.lib
     
    5252lock_suffix=.lock
    5353lock_file=$(lock_name)$(lock_suffix)
     54svn_checkout_command=python $(CMTROOT)\mgr\cmt_svn_checkout.py 
    5455MAKEFLAGS= --no-print-directory 
    5556gmake_hosts=lx1 rsplus lxtest as7 dxplus ax7 hp2 aleph hp1 hpplus papou1-fe atlas
  • CMT/HEAD/mgr/cmt.nmake

    r143 r497  
    6363
    6464
    65 $(bin)cmt$(application_suffix) :: $(bin)cmt\cmt.obj $(bin)cmt\cmt_awk.obj $(bin)cmt\cmt_branch.obj $(bin)cmt\cmt_constituent.obj $(bin)cmt\cmt_deps_builder.obj $(bin)cmt\cmt_fragment.obj $(bin)cmt\cmt_generator.obj $(bin)cmt\cmt_include.obj $(bin)cmt\cmt_parser.obj $(bin)cmt\cmt_script.obj $(bin)cmt\cmt_string.obj $(bin)cmt\cmt_system.obj $(bin)cmt\cmt_tag.obj $(bin)cmt\cmt_use.obj $(bin)cmt\cmt_symbol.obj $(bin)cmt\cmt_error.obj $(bin)cmt\cmt_pattern.obj $(bin)cmt\cmt_language.obj $(bin)cmt\cmt_cvs.obj $(bin)cmt\cmt_group.obj $(bin)cmt\cmt_database.obj $(bin)cmt\cmt_lock.obj $(bin)cmt\cmt_triggers.obj $(bin)cmt\cmt_regexp.obj $(bin)cmt\cmt_model.obj $(bin)cmt\cmt_project.obj $(bin)cmt\cmt_syntax.obj $(bin)cmt\cmt_install_area.obj $(bin)cmt\cmt_cmtpath_pattern.obj $(bin)cmt\cmt_sequence.obj $(bin)cmt\cmt_generators.obj $(bin)cmt\cmt_scope_section.obj $(bin)cmt\cmt_log.obj $(bin)cmt\cmt_commands.obj $(use_stamps) $(cmtstamps) requirements $(use_requirements)
     65$(bin)cmt$(application_suffix) :: $(bin)cmt\cmt.obj $(bin)cmt\cmt_awk.obj $(bin)cmt\cmt_branch.obj $(bin)cmt\cmt_constituent.obj $(bin)cmt\cmt_deps_builder.obj $(bin)cmt\cmt_fragment.obj $(bin)cmt\cmt_generator.obj $(bin)cmt\cmt_include.obj $(bin)cmt\cmt_parser.obj $(bin)cmt\cmt_script.obj $(bin)cmt\cmt_string.obj $(bin)cmt\cmt_system.obj $(bin)cmt\cmt_tag.obj $(bin)cmt\cmt_use.obj $(bin)cmt\cmt_symbol.obj $(bin)cmt\cmt_error.obj $(bin)cmt\cmt_pattern.obj $(bin)cmt\cmt_language.obj $(bin)cmt\cmt_vcs.obj $(bin)cmt\cmt_group.obj $(bin)cmt\cmt_database.obj $(bin)cmt\cmt_lock.obj $(bin)cmt\cmt_triggers.obj $(bin)cmt\cmt_regexp.obj $(bin)cmt\cmt_model.obj $(bin)cmt\cmt_project.obj $(bin)cmt\cmt_syntax.obj $(bin)cmt\cmt_install_area.obj $(bin)cmt\cmt_cmtpath_pattern.obj $(bin)cmt\cmt_sequence.obj $(bin)cmt\cmt_generators.obj $(bin)cmt\cmt_scope_section.obj $(bin)cmt\cmt_log.obj $(bin)cmt\cmt_commands.obj $(use_stamps) $(cmtstamps) requirements $(use_requirements)
    6666        $(link_echo) $@
    6767        $(link_silent) $(cpplink) /out:$(bin)cmt$(application_suffix) @<<
    68 $(bin)cmt\cmt.obj $(bin)cmt\cmt_awk.obj $(bin)cmt\cmt_branch.obj $(bin)cmt\cmt_constituent.obj $(bin)cmt\cmt_deps_builder.obj $(bin)cmt\cmt_fragment.obj $(bin)cmt\cmt_generator.obj $(bin)cmt\cmt_include.obj $(bin)cmt\cmt_parser.obj $(bin)cmt\cmt_script.obj $(bin)cmt\cmt_string.obj $(bin)cmt\cmt_system.obj $(bin)cmt\cmt_tag.obj $(bin)cmt\cmt_use.obj $(bin)cmt\cmt_symbol.obj $(bin)cmt\cmt_error.obj $(bin)cmt\cmt_pattern.obj $(bin)cmt\cmt_language.obj $(bin)cmt\cmt_cvs.obj $(bin)cmt\cmt_group.obj $(bin)cmt\cmt_database.obj $(bin)cmt\cmt_lock.obj $(bin)cmt\cmt_triggers.obj $(bin)cmt\cmt_regexp.obj $(bin)cmt\cmt_model.obj $(bin)cmt\cmt_project.obj $(bin)cmt\cmt_syntax.obj $(bin)cmt\cmt_install_area.obj $(bin)cmt\cmt_cmtpath_pattern.obj $(bin)cmt\cmt_sequence.obj $(bin)cmt\cmt_generators.obj $(bin)cmt\cmt_scope_section.obj $(bin)cmt\cmt_log.obj $(bin)cmt\cmt_commands.obj
     68$(bin)cmt\cmt.obj $(bin)cmt\cmt_awk.obj $(bin)cmt\cmt_branch.obj $(bin)cmt\cmt_constituent.obj $(bin)cmt\cmt_deps_builder.obj $(bin)cmt\cmt_fragment.obj $(bin)cmt\cmt_generator.obj $(bin)cmt\cmt_include.obj $(bin)cmt\cmt_parser.obj $(bin)cmt\cmt_script.obj $(bin)cmt\cmt_string.obj $(bin)cmt\cmt_system.obj $(bin)cmt\cmt_tag.obj $(bin)cmt\cmt_use.obj $(bin)cmt\cmt_symbol.obj $(bin)cmt\cmt_error.obj $(bin)cmt\cmt_pattern.obj $(bin)cmt\cmt_language.obj $(bin)cmt\cmt_vcs.obj $(bin)cmt\cmt_group.obj $(bin)cmt\cmt_database.obj $(bin)cmt\cmt_lock.obj $(bin)cmt\cmt_triggers.obj $(bin)cmt\cmt_regexp.obj $(bin)cmt\cmt_model.obj $(bin)cmt\cmt_project.obj $(bin)cmt\cmt_syntax.obj $(bin)cmt\cmt_install_area.obj $(bin)cmt\cmt_cmtpath_pattern.obj $(bin)cmt\cmt_sequence.obj $(bin)cmt\cmt_generators.obj $(bin)cmt\cmt_scope_section.obj $(bin)cmt\cmt_log.obj $(bin)cmt\cmt_commands.obj
    6969$(use_linkopts)
    7070$(cmtlinkopts)
     
    253253#-- start of cpp ------
    254254
    255 $(bin)cmt/cmt_cvs.obj : $(cmt_cvs_cxx_dependencies)
    256         $(cpp_echo) $@
    257         @if not exist $(bin)cmt mkdir $(bin)cmt
    258         $(cpp_silent) $(cppcomp) /Fo$(bin)cmt\cmt_cvs.obj  /Fd$(bin)cmt\ $(use_pp_cppflags) $(cmt_pp_cppflags) $(app_cmt_pp_cppflags) $(cmt_cvs_pp_cppflags) $(use_cppflags) $(cmt_cppflags) $(app_cmt_cppflags) $(cmt_cvs_cppflags) $(cmt_cvs_cxx_cppflags) -I..\source /Tp..\source\cmt_cvs.cxx
     255$(bin)cmt/cmt_vcs.obj : $(cmt_vcs_cxx_dependencies)
     256        $(cpp_echo) $@
     257        @if not exist $(bin)cmt mkdir $(bin)cmt
     258        $(cpp_silent) $(cppcomp) /Fo$(bin)cmt\cmt_vcs.obj  /Fd$(bin)cmt\ $(use_pp_cppflags) $(cmt_pp_cppflags) $(app_cmt_pp_cppflags) $(cmt_vcs_pp_cppflags) $(use_cppflags) $(cmt_cppflags) $(app_cmt_cppflags) $(cmt_vcs_cppflags) $(cmt_vcs_cxx_cppflags) -I..\source /Tp..\source\cmt_vcs.cxx
    259259
    260260#-- end of cpp ------
  • CMT/HEAD/mgr/cmt_dependencies.nmake

    r469 r497  
    77cmt_generator_cxx_dependencies = "..\source\cmt_generator.cxx" "..\source\cmt_std.h" "..\source\cmt_string.h" "..\source\cmt_vector.h" "..\source\cmt_regexp.h" "..\source\cmt_system.h" "..\source\cmt.h" "..\source\cmt_parser.h" "..\source\cmt_fragment.h" "..\source\cmt_group.h" "..\source\cmt_constituent.h" "..\source\cmt_language.h" "..\source\cmt_awk.h" "..\source\cmt_map.h" "..\source\cmt_include.h" "..\source\cmt_script.h" "..\source\cmt_pattern.h" "..\source\cmt_scope_section.h" "..\source\cmt_use.h" "..\source\cmt_deps_builder.h" "..\source\cmt_generator.h" "..\source\cmt_tag.h" "..\source\cmt_symbol.h" "..\source\cmt_generators.h" "..\source\cmt_log.h"
    88cmt_include_cxx_dependencies = "..\source\cmt_include.cxx" "..\source\cmt_std.h" "..\source\cmt_string.h" "..\source\cmt_vector.h" "..\source\cmt_regexp.h" "..\source\cmt_system.h" "..\source\cmt.h" "..\source\cmt_parser.h" "..\source\cmt_include.h" "..\source\cmt_map.h" "..\source\cmt_script.h" "..\source\cmt_pattern.h" "..\source\cmt_scope_section.h" "..\source\cmt_use.h" "..\source\cmt_tag.h" "..\source\cmt_symbol.h" "..\source\cmt_log.h"
    9 cmt_parser_cxx_dependencies = "..\source\cmt_parser.cxx" "..\source\cmt_std.h" "..\source\cmt_string.h" "..\source\cmt_vector.h" "..\source\cmt_regexp.h" "..\source\cmt_system.h" "..\source\cmt.h" "..\source\cmt_parser.h" "..\source\cmt_version.h" "..\source\cmt_branch.h" "..\source\cmt_fragment.h" "..\source\cmt_group.h" "..\source\cmt_constituent.h" "..\source\cmt_language.h" "..\source\cmt_map.h" "..\source\cmt_pattern.h" "..\source\cmt_include.h" "..\source\cmt_script.h" "..\source\cmt_scope_section.h" "..\source\cmt_use.h" "..\source\cmt_tag.h" "..\source\cmt_symbol.h" "..\source\cmt_awk.h" "..\source\cmt_project.h" "..\source\cmt_cmtpath_pattern.h" "..\source\cmt_database.h" "..\source\cmt_deps_builder.h" "..\source\cmt_generator.h" "..\source\cmt_error.h" "..\source\cmt_cvs.h" "..\source\cmt_lock.h" "..\source\cmt_triggers.h" "..\source\cmt_model.h" "..\source\cmt_syntax.h" "..\source\cmt_install_area.h" "..\source\cmt_sequence.h" "..\source\cmt_log.h" "..\source\cmt_commands.h"
     9cmt_parser_cxx_dependencies = "..\source\cmt_parser.cxx" "..\source\cmt_std.h" "..\source\cmt_string.h" "..\source\cmt_vector.h" "..\source\cmt_regexp.h" "..\source\cmt_system.h" "..\source\cmt.h" "..\source\cmt_parser.h" "..\source\cmt_version.h" "..\source\cmt_branch.h" "..\source\cmt_fragment.h" "..\source\cmt_group.h" "..\source\cmt_constituent.h" "..\source\cmt_language.h" "..\source\cmt_map.h" "..\source\cmt_pattern.h" "..\source\cmt_include.h" "..\source\cmt_script.h" "..\source\cmt_scope_section.h" "..\source\cmt_use.h" "..\source\cmt_tag.h" "..\source\cmt_symbol.h" "..\source\cmt_awk.h" "..\source\cmt_project.h" "..\source\cmt_cmtpath_pattern.h" "..\source\cmt_database.h" "..\source\cmt_deps_builder.h" "..\source\cmt_generator.h" "..\source\cmt_error.h" "..\source\cmt_cvs.h" "..\source\cmt_vcs.h" "..\source\cmt_lock.h" "..\source\cmt_triggers.h" "..\source\cmt_model.h" "..\source\cmt_syntax.h" "..\source\cmt_install_area.h" "..\source\cmt_sequence.h" "..\source\cmt_log.h" "..\source\cmt_commands.h"
    1010cmt_script_cxx_dependencies = "..\source\cmt_script.cxx" "..\source\cmt_std.h" "..\source\cmt_string.h" "..\source\cmt_vector.h" "..\source\cmt_regexp.h" "..\source\cmt_system.h" "..\source\cmt.h" "..\source\cmt_parser.h" "..\source\cmt_script.h" "..\source\cmt_map.h" "..\source\cmt_include.h" "..\source\cmt_pattern.h" "..\source\cmt_scope_section.h" "..\source\cmt_use.h"
    1111cmt_string_cxx_dependencies = "..\source\cmt_string.cxx" "..\source\cmt_std.h" "..\source\cmt_string.h"
     
    1717cmt_pattern_cxx_dependencies = "..\source\cmt_pattern.cxx" "..\source\cmt_std.h" "..\source\cmt_string.h" "..\source\cmt_vector.h" "..\source\cmt_parser.h" "..\source\cmt_regexp.h" "..\source\cmt_system.h" "..\source\cmt.h" "..\source\cmt_map.h" "..\source\cmt_pattern.h" "..\source\cmt_include.h" "..\source\cmt_script.h" "..\source\cmt_scope_section.h" "..\source\cmt_use.h" "..\source\cmt_branch.h" "..\source\cmt_fragment.h" "..\source\cmt_group.h" "..\source\cmt_constituent.h" "..\source\cmt_language.h" "..\source\cmt_tag.h" "..\source\cmt_symbol.h" "..\source\cmt_awk.h" "..\source\cmt_project.h" "..\source\cmt_cmtpath_pattern.h" "..\source\cmt_database.h" "..\source\cmt_error.h" "..\source\cmt_syntax.h" "..\source\cmt_log.h"
    1818cmt_language_cxx_dependencies = "..\source\cmt_language.cxx" "..\source\cmt_std.h" "..\source\cmt_string.h" "..\source\cmt_vector.h" "..\source\cmt_regexp.h" "..\source\cmt_system.h" "..\source\cmt.h" "..\source\cmt_parser.h" "..\source\cmt_fragment.h" "..\source\cmt_language.h" "..\source\cmt_branch.h" "..\source\cmt_group.h" "..\source\cmt_constituent.h" "..\source\cmt_map.h" "..\source\cmt_pattern.h" "..\source\cmt_include.h" "..\source\cmt_script.h" "..\source\cmt_scope_section.h" "..\source\cmt_use.h" "..\source\cmt_tag.h" "..\source\cmt_symbol.h" "..\source\cmt_awk.h" "..\source\cmt_project.h" "..\source\cmt_cmtpath_pattern.h" "..\source\cmt_database.h"
    19 cmt_cvs_cxx_dependencies = "..\source\cmt_cvs.cxx" "..\source\cmt_std.h" "..\source\cmt_string.h" "..\source\cmt_vector.h" "..\source\cmt_parser.h" "..\source\cmt_regexp.h" "..\source\cmt_system.h" "..\source\cmt.h" "..\source\cmt_cvs.h" "..\source\cmt_awk.h" "..\source\cmt_map.h" "..\source\cmt_include.h" "..\source\cmt_script.h" "..\source\cmt_pattern.h" "..\source\cmt_scope_section.h" "..\source\cmt_use.h" "..\source\cmt_tag.h" "..\source\cmt_symbol.h" "..\source\cmt_project.h" "..\source\cmt_log.h"
     19cmt_vcs_cxx_dependencies = "..\source\cmt_vcs.cxx" "..\source\cmt_std.h" "..\source\cmt_string.h" "..\source\cmt_vector.h" "..\source\cmt_parser.h" "..\source\cmt_regexp.h" "..\source\cmt_system.h" "..\source\cmt.h" "..\source\cmt_cvs.h" "..\source\cmt_vcs.h" "..\source\cmt_awk.h" "..\source\cmt_map.h" "..\source\cmt_include.h" "..\source\cmt_script.h" "..\source\cmt_pattern.h" "..\source\cmt_scope_section.h" "..\source\cmt_use.h" "..\source\cmt_tag.h" "..\source\cmt_symbol.h" "..\source\cmt_project.h" "..\source\cmt_log.h" "..\source\cmt_error.h"
    2020cmt_group_cxx_dependencies = "..\source\cmt_group.cxx" "..\source\cmt_std.h" "..\source\cmt_string.h" "..\source\cmt_vector.h" "..\source\cmt_regexp.h" "..\source\cmt_system.h" "..\source\cmt.h" "..\source\cmt_parser.h" "..\source\cmt_group.h" "..\source\cmt_branch.h" "..\source\cmt_fragment.h" "..\source\cmt_constituent.h" "..\source\cmt_language.h" "..\source\cmt_map.h" "..\source\cmt_pattern.h" "..\source\cmt_include.h" "..\source\cmt_script.h" "..\source\cmt_scope_section.h" "..\source\cmt_use.h" "..\source\cmt_tag.h" "..\source\cmt_symbol.h" "..\source\cmt_awk.h" "..\source\cmt_project.h" "..\source\cmt_cmtpath_pattern.h" "..\source\cmt_database.h"
    2121cmt_database_cxx_dependencies = "..\source\cmt_database.cxx" "..\source\cmt_vector.h" "..\source\cmt_std.h" "..\source\cmt_string.h" "..\source\cmt_regexp.h" "..\source\cmt_system.h" "..\source\cmt.h" "..\source\cmt_parser.h" "..\source\cmt_branch.h" "..\source\cmt_fragment.h" "..\source\cmt_group.h" "..\source\cmt_constituent.h" "..\source\cmt_language.h" "..\source\cmt_map.h" "..\source\cmt_pattern.h" "..\source\cmt_include.h" "..\source\cmt_script.h" "..\source\cmt_scope_section.h" "..\source\cmt_use.h" "..\source\cmt_tag.h" "..\source\cmt_symbol.h" "..\source\cmt_awk.h" "..\source\cmt_project.h" "..\source\cmt_cmtpath_pattern.h" "..\source\cmt_database.h"
     
    3232cmt_scope_section_cxx_dependencies = "..\source\cmt_scope_section.cxx" "..\source\cmt_std.h" "..\source\cmt_string.h" "..\source\cmt_vector.h" "..\source\cmt_regexp.h" "..\source\cmt_system.h" "..\source\cmt.h" "..\source\cmt_parser.h" "..\source\cmt_scope_section.h"
    3333cmt_log_cxx_dependencies = "..\source\cmt_log.cxx" "..\source\cmt_std.h" "..\source\cmt_string.h" "..\source\cmt_log.h" "..\source\cmt_vector.h" "..\source\cmt_parser.h" "..\source\cmt_regexp.h" "..\source\cmt_system.h" "..\source\cmt.h"
    34 cmt_commands_cxx_dependencies = "..\source\cmt_commands.cxx" "..\source\cmt_std.h" "..\source\cmt_string.h" "..\source\cmt_vector.h" "..\source\cmt_map.h" "..\source\cmt_parser.h" "..\source\cmt_regexp.h" "..\source\cmt_system.h" "..\source\cmt.h" "..\source\cmt_commands.h" "..\source\cmt_include.h" "..\source\cmt_script.h" "..\source\cmt_pattern.h" "..\source\cmt_scope_section.h" "..\source\cmt_use.h" "..\source\cmt_tag.h" "..\source\cmt_symbol.h" "..\source\cmt_awk.h" "..\source\cmt_project.h" "..\source\cmt_log.h"
     34cmt_commands_cxx_dependencies = "..\source\cmt_commands.cxx" "..\source\cmt_std.h" "..\source\cmt_string.h" "..\source\cmt_vector.h" "..\source\cmt_map.h" "..\source\cmt_parser.h" "..\source\cmt_regexp.h" "..\source\cmt_system.h" "..\source\cmt.h" "..\source\cmt_commands.h" "..\source\cmt_include.h" "..\source\cmt_script.h" "..\source\cmt_pattern.h" "..\source\cmt_scope_section.h" "..\source\cmt_use.h" "..\source\cmt_tag.h" "..\source\cmt_symbol.h" "..\source\cmt_awk.h" "..\source\cmt_project.h" "..\source\cmt_log.h" "..\source\cmt_error.h"
  • CMT/HEAD/mgr/cmt_svn_checkout.py

    r495 r497  
    2323"""
    2424
    25 __version__ = '0.1.1'
    26 __date__ = 'Mon Apr 20 2009'
     25__version__ = '0.1.2'
     26__date__ = 'Mon Apr 28 2009'
    2727__author__ = 'Grigory Rybkin'
    2828
     
    3434import urlparse
    3535
    36 from svn import client, core
     36self = 'cmt_svn_checkout.py'
     37try:
     38    from svn import client, core
     39except ImportError, e:
     40    print >>sys.stderr, '%s: %s: cannot import Subversion Python bindings' \
     41          % (self, str(e))
     42    sys.exit(1)
    3743
    3844class ClientContext(object):
  • CMT/HEAD/source/cmt_system.cxx

    r464 r497  
    2828
    2929#define stat _stat
     30#define WEXITSTATUS(w) (w)
    3031
    3132#else
     
    16101611{
    16111612  //cerr << "CmtSystem::execute1> [" << command << "]" << endl;
    1612 
    1613   return (system (command.c_str ()));
     1613  int status = system (command.c_str ());
     1614  if (status == -1) // failed
     1615    return -1;
     1616  else
     1617    return WEXITSTATUS(status); // return status of the command
     1618  //  return (system (command.c_str ()));
    16141619}
    16151620
  • CMT/HEAD/source/cmt_vcs.cxx

    r496 r497  
    301301           
    302302            char stat[8];
     303            //sprintf (stat, "%d", WEXITSTATUS(status));
    303304            sprintf (stat, "%d", status);
     305            char ret[8];
     306            sprintf (ret, "%d", retry);
    304307            CmtMessage::error ("# " + message + ": status=" + stat);
    305308            CmtMessage::error ("#---------------------------------------------------------");
     
    307310            //      cerr << "#---------------------------------------------------------" << endl;
    308311           
    309             if (retry > 5) exit(0);
     312            if (retry > 5)
     313              {
     314                exit(status);
     315                //              exit(0);
     316              }
     317            else
     318              {
     319                CmtMessage::info (command + " [retry: " + ret + "]");
     320              }
    310321          }
    311322        else
     
    422433          }
    423434      }
    424    
     435
     436    if (!found)
     437      {
     438        CmtMessage::error ("The CVS pluggin is not installed or is not at protocol level " + m_protocol_level);
     439        exit(1);
     440      }
     441
    425442    return (found);
    426443  }
     
    864881      {
    865882        versions = "";
    866         CmtMessage::error ("Product " + product + " not found in ${CVSROOT}");
     883        CmtError::set (CmtError::configuration_error, "Product " + product + " not found in ${CVSROOT}");
     884        //      CmtMessage::error ("Product " + product + " not found in ${CVSROOT}");
    867885        //      cerr << "#CMT> Product " << product << " not found in ${CVSROOT}" << endl;
    868886        return (false);
     
    10941112
    10951113    cmt_string version_dir = version;
    1096     if (!mkdir (version_dir)) return (false);
     1114    if (!mkdir (version_dir))
     1115    {
     1116      CmtError::set (CmtError::execution_error, "Cannot create " + version_dir);
     1117      return (false);   
     1118    }
    10971119
    10981120    dir += CmtSystem::file_separator ();
     
    12931315    if (need_version)
    12941316      {
    1295         if (!mkdir (version)) return (false);   
     1317        if (!mkdir (version))
     1318          {
     1319            CmtError::set (CmtError::execution_error, "Cannot create " + version);
     1320            return (false);     
     1321          }
    12961322        dir += CmtSystem::file_separator ();
    12971323        dir += version;
     
    12991325    else
    13001326      {
    1301         if (!mkdir (package)) return (false);
     1327        if (!mkdir (package))
     1328        {
     1329          CmtError::set (CmtError::execution_error, "Cannot create " + package);
     1330          return (false);       
     1331        }
    13021332       
    13031333        dir += CmtSystem::file_separator ();
     
    14631493      }
    14641494
    1465     if (!mkdir (dir)) return (false);
     1495    if (!mkdir (dir))
     1496      {
     1497        CmtError::set (CmtError::execution_error, "Cannot create " + dir);
     1498        return (false);
     1499      }
    14661500       
    14671501    if (structure_info == "package")
     
    18911925        if (!CmtSystem::cd (dir))
    18921926          {
    1893             CmtMessage::error ("Package directory not created " + dir);
     1927            CmtError::set (CmtError::configuration_error,
     1928                           "Package directory not created " + dir);
     1929            //      CmtMessage::error ("Package directory not created " + dir);
    18941930            //      cerr << "#CMT> Package directory not created " << dir << endl;
    18951931            return;
     
    19892025        if (!CmtSystem::cd (dir))
    19902026          {
    1991             CmtMessage::error ("Project directory not created " + dir);
     2027            CmtError::set (CmtError::configuration_error,
     2028                           "Project directory not created " + dir);
     2029            //      CmtMessage::error ("Project directory not created " + dir);
    19922030            //      cerr << "#CMT> Project directory not created " << dir << endl;
    19932031            return;
     
    20702108      if (error_info != "")
    20712109        {
    2072           CmtMessage::error (error_info);
     2110          CmtError::set (CmtError::configuration_error, error_info);
     2111          //CmtMessage::error (error_info);
    20732112          //      cerr << error_info << endl;
    20742113          return;
     
    21742213        if (!CmtSystem::test_file (file_name))
    21752214          {
    2176             CmtMessage::error (product + " was not properly checked out and is missing its cmt/project.cmt file");
     2215            CmtError::set (CmtError::configuration_error, product +
     2216                           " was not properly checked out and is missing its cmt/project.cmt file");
     2217            //CmtMessage::error (product + " was not properly checked out and is missing its cmt/project.cmt file");
    21772218            //      cerr << "# " << product << " was not properly checked out and is missing its cmt/project.cmt file" << endl;
    21782219            return;
     
    22072248            else
    22082249              {
    2209                 CmtMessage::error (product + " was not properly checked out and is missing its cmt/requirements file");
     2250                CmtError::set (CmtError::configuration_error, product +
     2251                               " was not properly checked out and is missing its cmt/requirements file");
     2252                //              CmtMessage::error (product + " was not properly checked out and is missing its cmt/requirements file");
    22102253                //              cerr << "# " << product << " was not properly checked out and is missing its cmt/requirements file" << endl;
    22112254                return;
Note: See TracChangeset for help on using the changeset viewer.