Changeset 497
- Timestamp:
- Apr 29, 2009, 2:29:53 PM (15 years ago)
- Location:
- CMT/HEAD
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/ChangeLog
r496 r497 1 2009-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 1 13 2009-04-27 <rybkin@lal.in2p3.fr> 391 2 14 -
CMT/HEAD/mgr/VisualC.nmake
r483 r497 37 37 build_dependencies=$(cmtexe) -tag=$(tags) build dependencies 38 38 build_triggers=$(cmtexe) build triggers 39 format_dependencies=$(CMTROOT)\mgr\cmt_format_deps.bat /no_stamps39 format_dependencies=$(CMTROOT)\mgr\cmt_format_deps.bat 40 40 implied_library_prefix=-l 41 41 implied_library_suffix=.lib … … 52 52 lock_suffix=.lock 53 53 lock_file=$(lock_name)$(lock_suffix) 54 svn_checkout_command=python $(CMTROOT)\mgr\cmt_svn_checkout.py 54 55 MAKEFLAGS= --no-print-directory 55 56 gmake_hosts=lx1 rsplus lxtest as7 dxplus ax7 hp2 aleph hp1 hpplus papou1-fe atlas -
CMT/HEAD/mgr/cmt.nmake
r143 r497 63 63 64 64 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) 66 66 $(link_echo) $@ 67 67 $(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.obj68 $(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 69 69 $(use_linkopts) 70 70 $(cmtlinkopts) … … 253 253 #-- start of cpp ------ 254 254 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.cxx255 $(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 259 259 260 260 #-- end of cpp ------ -
CMT/HEAD/mgr/cmt_dependencies.nmake
r469 r497 7 7 cmt_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" 8 8 cmt_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"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_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" 10 10 cmt_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" 11 11 cmt_string_cxx_dependencies = "..\source\cmt_string.cxx" "..\source\cmt_std.h" "..\source\cmt_string.h" … … 17 17 cmt_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" 18 18 cmt_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"19 cmt_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" 20 20 cmt_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" 21 21 cmt_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" … … 32 32 cmt_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" 33 33 cmt_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" 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" "..\source\cmt_error.h" -
CMT/HEAD/mgr/cmt_svn_checkout.py
r495 r497 23 23 """ 24 24 25 __version__ = '0.1. 1'26 __date__ = 'Mon Apr 2 02009'25 __version__ = '0.1.2' 26 __date__ = 'Mon Apr 28 2009' 27 27 __author__ = 'Grigory Rybkin' 28 28 … … 34 34 import urlparse 35 35 36 from svn import client, core 36 self = 'cmt_svn_checkout.py' 37 try: 38 from svn import client, core 39 except ImportError, e: 40 print >>sys.stderr, '%s: %s: cannot import Subversion Python bindings' \ 41 % (self, str(e)) 42 sys.exit(1) 37 43 38 44 class ClientContext(object): -
CMT/HEAD/source/cmt_system.cxx
r464 r497 28 28 29 29 #define stat _stat 30 #define WEXITSTATUS(w) (w) 30 31 31 32 #else … … 1610 1611 { 1611 1612 //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 ())); 1614 1619 } 1615 1620 -
CMT/HEAD/source/cmt_vcs.cxx
r496 r497 301 301 302 302 char stat[8]; 303 //sprintf (stat, "%d", WEXITSTATUS(status)); 303 304 sprintf (stat, "%d", status); 305 char ret[8]; 306 sprintf (ret, "%d", retry); 304 307 CmtMessage::error ("# " + message + ": status=" + stat); 305 308 CmtMessage::error ("#---------------------------------------------------------"); … … 307 310 // cerr << "#---------------------------------------------------------" << endl; 308 311 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 } 310 321 } 311 322 else … … 422 433 } 423 434 } 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 425 442 return (found); 426 443 } … … 864 881 { 865 882 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}"); 867 885 // cerr << "#CMT> Product " << product << " not found in ${CVSROOT}" << endl; 868 886 return (false); … … 1094 1112 1095 1113 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 } 1097 1119 1098 1120 dir += CmtSystem::file_separator (); … … 1293 1315 if (need_version) 1294 1316 { 1295 if (!mkdir (version)) return (false); 1317 if (!mkdir (version)) 1318 { 1319 CmtError::set (CmtError::execution_error, "Cannot create " + version); 1320 return (false); 1321 } 1296 1322 dir += CmtSystem::file_separator (); 1297 1323 dir += version; … … 1299 1325 else 1300 1326 { 1301 if (!mkdir (package)) return (false); 1327 if (!mkdir (package)) 1328 { 1329 CmtError::set (CmtError::execution_error, "Cannot create " + package); 1330 return (false); 1331 } 1302 1332 1303 1333 dir += CmtSystem::file_separator (); … … 1463 1493 } 1464 1494 1465 if (!mkdir (dir)) return (false); 1495 if (!mkdir (dir)) 1496 { 1497 CmtError::set (CmtError::execution_error, "Cannot create " + dir); 1498 return (false); 1499 } 1466 1500 1467 1501 if (structure_info == "package") … … 1891 1925 if (!CmtSystem::cd (dir)) 1892 1926 { 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); 1894 1930 // cerr << "#CMT> Package directory not created " << dir << endl; 1895 1931 return; … … 1989 2025 if (!CmtSystem::cd (dir)) 1990 2026 { 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); 1992 2030 // cerr << "#CMT> Project directory not created " << dir << endl; 1993 2031 return; … … 2070 2108 if (error_info != "") 2071 2109 { 2072 CmtMessage::error (error_info); 2110 CmtError::set (CmtError::configuration_error, error_info); 2111 //CmtMessage::error (error_info); 2073 2112 // cerr << error_info << endl; 2074 2113 return; … … 2174 2213 if (!CmtSystem::test_file (file_name)) 2175 2214 { 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"); 2177 2218 // cerr << "# " << product << " was not properly checked out and is missing its cmt/project.cmt file" << endl; 2178 2219 return; … … 2207 2248 else 2208 2249 { 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"); 2210 2253 // cerr << "# " << product << " was not properly checked out and is missing its cmt/requirements file" << endl; 2211 2254 return;
Note: See TracChangeset
for help on using the changeset viewer.