ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/Spectre/Maker.cpp
(Generate patch)

Comparing trunk/Spectre/Maker.cpp (file contents):
Revision 169 by douglas, 2003-06-23T21:09:07-07:00 vs.
Revision 170 by douglas, 2003-06-23T21:33:14-07:00

# Line 34 | Line 34 | void Maker::make()
34                  }
35          }
36  
37 +        if (debug) cerr << "folders = {\n";
38 +
39          for (map<string, Folder>::iterator itor = folders.begin(); itor
40                  != folders.end(); itor++)
41          {
42 +                if (debug) cerr << "   " << itor->first << " = {\n"
43 +                        << "      local = " << itor->second.local << "\n"
44 +                        << "      remote = " << itor->second.remote << "\n"
45 +                        << "   }\n";
46 +
47                  make(itor->first, itor->second.local);
48          }
49 +
50 +        if (debug) cerr << "}\n";
51   }
52  
53   void Maker::samba()
# Line 66 | Line 75 | void Maker::samba()
75  
76          ipstream smbclient(config.smbclient, args);
77  
78 +        if (debug) cerr << "smbclient = {\n";
79 +
80          if (connect(smbclient))
81          {
82                  for (unsigned index = 0; index < 2; index++)
# Line 84 | Line 95 | void Maker::samba()
95                  cerr << program << ": Connection to " << host << " failed\n";
96          }
97  
98 +        if (debug) cerr << "}\n";
99 +
100          smbclient.close();
101  
102          unlink(credentials);
# Line 139 | Line 152 | void Maker::samba(ipstream& pin)
152  
153                          if (share[end] == '$') continue;
154  
155 <                        //
155 >                        if (folders.find(share) == folders.end())
156 >                        {
157 >                                folders.insert(pair<string, Folder>(share, regular));
158 >                        }
159                  }
160          }
161  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines