Changeset 190


Ignore:
Timestamp:
May 29, 2006, 12:10:28 PM (18 years ago)
Author:
garonne
Message:

correct check out operation

Location:
CMT/HEAD/source
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/source/cmt_awk.cxx

    r141 r190  
    609609void PathScanner::scan_path (const cmt_string& path, int level, actor& a)
    610610{
    611   if (level > 10)
    612     {
    613       cout << "#PathScanner::scan_path> too deep search path=" << path << endl;
     611  if (level > 2)
     612    {
     613      //cout << "#PathScanner::scan_path> too deep search path=" << path << endl;
    614614      return;
    615615    }
     
    655655
    656656      if ((level == 0) && (entry == "InstallArea")) continue;
     657      if (entry == "CVS") continue;
    657658
    658659      cmt_string req;
     
    678679          has_package = true;
    679680
     681          // We don't keep on looking in this directory since the versioned structure
     682          // does not expect subpackages there
    680683          continue;
    681684        }
     
    720723              a.run (entry, version, path, true);
    721724              has_package = true;
    722              
     725
     726              // We scan further down
     727              scan_path (here, 1, a);
    723728              continue;
    724729            }
    725730
    726731          cmt_string p;
    727 
     732         
    728733          p.read (req);
    729734          int pos;
     
    740745              if (p != "") name = p;
    741746            }
    742 
     747         
    743748          if (name != "")
    744749            {
    745750              // The package name was specified in the requirements file
    746 
     751             
    747752              if (entry == name)
    748753                {
    749754                  // The structure is without the version directory.
    750 
     755                 
    751756                  //cout << "#3" << endl;
    752 
     757                 
    753758                  a.run (name, "v1", path);
    754759                  has_package = true;
    755760                 
     761                  // We scan further down
     762                  scan_path (here, 1, a);
    756763                  continue;
    757764                }
     
    764771                  // The structure is with the version directory.
    765772                 
    766                   // cout << "#4" << endl;
    767 
     773                  //cout << "#4" << endl;
     774                 
    768775                  a.run (name, version, where);
    769776                  has_package = true;
     
    771778                  continue;
    772779                }
    773 
     780             
    774781              // No directory structure matches the package name
    775782              // Is it a typo in the requirements file ?
     
    781788              CmtSystem::basename (path, entry);
    782789            }
    783 
     790         
    784791          // The package name is not specified in the requirements file
    785792          // or did not match the directory structure
    786793          // We'll have to guess it from the structure
    787              
     794         
    788795          if (CmtSystem::is_version_directory (version))
    789796            {
    790797              //cout << "#5" << endl;
    791 
     798             
    792799              a.run (entry, version, where);
    793800              has_package = true;
     
    796803            }
    797804
     805          // Here we suppose that the directory up is the package name
     806          // although no specification of the version has been found
     807          // So we decide that
     808          // - it's a non-versioned structure
     809          // - the version is set by default to v1
    798810          name = version;
    799 
     811         
    800812          where += CmtSystem::file_separator ();
    801813          where += entry;
    802 
     814         
    803815          //cout << "#6" << endl;
    804 
     816         
    805817          a.run (name, "v1", where);
    806818          has_package = true;
    807819         
     820          // We scan further down
     821          scan_path (here, 1, a);
    808822          continue;
    809823        }
    810824
     825      //
     826      // Here this is a non-package directory. Let's search further down
    811827      //cout << "#7" << endl;
    812828
  • CMT/HEAD/source/cmt_cvs.cxx

    r178 r190  
    11001100    cout << "  # get top files " << endl;
    11011101           
    1102     cmt_string command = "cvs -Q co -P -l ";
     1102    cmt_string command = "cvs -Q co -l ";
    11031103    if (!at_head)
    11041104      {
Note: See TracChangeset for help on using the changeset viewer.