Changeset 190
- Timestamp:
- May 29, 2006, 12:10:28 PM (18 years ago)
- Location:
- CMT/HEAD/source
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/source/cmt_awk.cxx
r141 r190 609 609 void PathScanner::scan_path (const cmt_string& path, int level, actor& a) 610 610 { 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; 614 614 return; 615 615 } … … 655 655 656 656 if ((level == 0) && (entry == "InstallArea")) continue; 657 if (entry == "CVS") continue; 657 658 658 659 cmt_string req; … … 678 679 has_package = true; 679 680 681 // We don't keep on looking in this directory since the versioned structure 682 // does not expect subpackages there 680 683 continue; 681 684 } … … 720 723 a.run (entry, version, path, true); 721 724 has_package = true; 722 725 726 // We scan further down 727 scan_path (here, 1, a); 723 728 continue; 724 729 } 725 730 726 731 cmt_string p; 727 732 728 733 p.read (req); 729 734 int pos; … … 740 745 if (p != "") name = p; 741 746 } 742 747 743 748 if (name != "") 744 749 { 745 750 // The package name was specified in the requirements file 746 751 747 752 if (entry == name) 748 753 { 749 754 // The structure is without the version directory. 750 755 751 756 //cout << "#3" << endl; 752 757 753 758 a.run (name, "v1", path); 754 759 has_package = true; 755 760 761 // We scan further down 762 scan_path (here, 1, a); 756 763 continue; 757 764 } … … 764 771 // The structure is with the version directory. 765 772 766 // 767 773 //cout << "#4" << endl; 774 768 775 a.run (name, version, where); 769 776 has_package = true; … … 771 778 continue; 772 779 } 773 780 774 781 // No directory structure matches the package name 775 782 // Is it a typo in the requirements file ? … … 781 788 CmtSystem::basename (path, entry); 782 789 } 783 790 784 791 // The package name is not specified in the requirements file 785 792 // or did not match the directory structure 786 793 // We'll have to guess it from the structure 787 794 788 795 if (CmtSystem::is_version_directory (version)) 789 796 { 790 797 //cout << "#5" << endl; 791 798 792 799 a.run (entry, version, where); 793 800 has_package = true; … … 796 803 } 797 804 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 798 810 name = version; 799 811 800 812 where += CmtSystem::file_separator (); 801 813 where += entry; 802 814 803 815 //cout << "#6" << endl; 804 816 805 817 a.run (name, "v1", where); 806 818 has_package = true; 807 819 820 // We scan further down 821 scan_path (here, 1, a); 808 822 continue; 809 823 } 810 824 825 // 826 // Here this is a non-package directory. Let's search further down 811 827 //cout << "#7" << endl; 812 828 -
CMT/HEAD/source/cmt_cvs.cxx
r178 r190 1100 1100 cout << " # get top files " << endl; 1101 1101 1102 cmt_string command = "cvs -Q co - P -l ";1102 cmt_string command = "cvs -Q co -l "; 1103 1103 if (!at_head) 1104 1104 {
Note: See TracChangeset
for help on using the changeset viewer.