Changeset 679 for CMT


Ignore:
Timestamp:
May 27, 2016, 4:59:21 PM (8 years ago)
Author:
rybkin
Message:

See C.L. 528

Location:
CMT/HEAD
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/ChangeLog

    r678 r679  
     12016-05-27    <rybkin@lal.in2p3.fr> 528
     2
     3        * mgr/cmt_svn_checkout.py: Strip leading '!' from CMTHEADVERSION value, if any,
     4        when setting package version
     5        * source/cmt_use.cxx: Strip leading '!' from CMTHEADVERSION value, if any,
     6        when checking for head version, do not set error when use is not located
     7        if it corresponds to "cmt_standalone" package
     8
    192016-05-18    <rybkin@lal.in2p3.fr> 527
    210
  • CMT/HEAD/mgr/cmt_svn_checkout.py

    r678 r679  
    2424"""
    2525
    26 __version__ = '0.9.0'
    27 __date__ = 'Wed May 18 2016'
     26__version__ = '0.10.0'
     27__date__ = 'Fri May 27 2016'
    2828__author__ = 'Grigory Rybkin'
    2929
     
    214214            self.head_version_tag = False
    215215        elif version.startswith('!'):
    216             # it may be appropriate to strip the leading '!'
    217             # that will require synchronization with C++ code, however
    218             # self.head_version = version[1:]
    219             self.head_version = version
     216            # strip the leading '!'
     217            # require synchronization with C++ code
     218            self.head_version = version[1:]
    220219            self.head_version_tag = False
    221220        else:
  • CMT/HEAD/source/cmt_use.cxx

    r667 r679  
    752752      if (!use->located ())
    753753        {
     754          if (use->get_package_name () == "cmt_standalone") continue;
    754755          CmtError::set (CmtError::package_not_found, use->get_info ());
    755         }
    756       else
    757         {
    758           /*
    759             CmtMessage::info ("package " +
    760             use->get_package_name () +
    761             " " + use->version +
    762             (use->path != "" ? " " + use->path : "") +
    763             " found");
    764           */
    765756        }
    766757    }
     
    58475838    {
    58485839      cmt_string s (Symbol::get_env_value ("CMTHEADVERSION"));
     5840      // strip the leading '!'
     5841      // See mgr/cmt_svn_checkout.py:CmtContext::set_head_version
     5842      if (0 != s.size () && '!' == s[0]) s = s.substr(1);
    58495843      static const cmt_string package_template = "<package>";
    58505844      s.replace_all (package_template, get_package_name ());
Note: See TracChangeset for help on using the changeset viewer.