Changeset 608 for CMT/HEAD/source/cmt_use.cxx
- Timestamp:
- Apr 5, 2012, 1:43:26 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/source/cmt_use.cxx
r607 r608 1853 1853 manager = ""; 1854 1854 real_path = ""; 1855 m_realpath = ""; 1855 1856 1856 1857 prefix = ""; … … 1930 1931 1931 1932 real_path = ""; 1933 m_realpath = ""; 1932 1934 1933 1935 if (new_path != "") … … 1947 1949 1948 1950 CmtSystem::compress_path (real_path); 1951 if (!CmtSystem::realpath_ (real_path, m_realpath)) 1952 { 1953 CmtError::set (CmtError::file_access_error, "Cannot compute real path `" + 1954 real_path + "'"); 1955 CmtError::print (); 1956 return; 1957 } 1949 1958 } 1950 1959 … … 3559 3568 offset = ""; 3560 3569 3561 cmtpath = Project::find_in_cmt_paths (real_path); 3562 Project* p = Project::find_by_cmtpath (cmtpath); 3570 cmtpath = m_realpath.size () 3571 ? Project::find_in_cmt_paths (m_realpath, true) 3572 : Project::find_in_cmt_paths (real_path) 3573 ; 3574 const Project* p = Project::find_by_cmtpath (cmtpath); 3563 3575 3564 3576 // if (cmtpath != "") … … 3574 3586 // offset.replace (cmtpath, empty_string); 3575 3587 //cerr << "realpath_: get_cmtpath_and_offset" << endl; 3576 if (!CmtSystem::realpath_ (real_path, offset)) 3588 if (0 != m_realpath.size ()) 3589 offset = m_realpath; 3590 else if (!CmtSystem::realpath_ (real_path, offset)) 3577 3591 { 3578 3592 CmtError::set (CmtError::file_access_error, "Cannot compute real path `" + … … 3605 3619 bool Use::get_strategy (const cmt_string& name) const 3606 3620 { 3607 const Project* p = Project::find_by_cmtpath (Project::find_in_cmt_paths (real_path)); 3621 const Project* p = 3622 Project::find_by_cmtpath (m_realpath.size () 3623 ? Project::find_in_cmt_paths (m_realpath, true) 3624 : Project::find_in_cmt_paths (real_path) 3625 ); 3626 // const Project* p = Project::find_by_cmtpath (Project::find_in_cmt_paths (real_path)); 3608 3627 3609 3628 bool strategy;
Note: See TracChangeset
for help on using the changeset viewer.