diff options
author | Marc Laukien <marc@zeroc.com> | 2002-04-07 22:40:29 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-04-07 22:40:29 +0000 |
commit | 531b48b2597082707cc173753633c44d1fa72e43 (patch) | |
tree | 9deb2bcaef9f88b2d330e3288684d796a4d9b045 /cpp/src/IcePatch/Client.cpp | |
parent | fixes (diff) | |
download | ice-531b48b2597082707cc173753633c44d1fa72e43.tar.bz2 ice-531b48b2597082707cc173753633c44d1fa72e43.tar.xz ice-531b48b2597082707cc173753633c44d1fa72e43.zip |
remove orphaned files
Diffstat (limited to 'cpp/src/IcePatch/Client.cpp')
-rw-r--r-- | cpp/src/IcePatch/Client.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/cpp/src/IcePatch/Client.cpp b/cpp/src/IcePatch/Client.cpp index 1e6cb7c14bb..aa54362f79f 100644 --- a/cpp/src/IcePatch/Client.cpp +++ b/cpp/src/IcePatch/Client.cpp @@ -26,7 +26,7 @@ public: void usage(); virtual int run(int, char*[]); - void printNodeDescSeq(const NodeDescSeq&, const string&); + void patch(const NodeDescSeq&, const string&); }; }; @@ -98,7 +98,12 @@ IcePatch::Client::run(int argc, char* argv[]) communicator()->addObjectFactory(factory, "::IcePatch::FileDesc"); // - // Display node structure. + // Remove orphaned MD5 and BZ2 files. + // + removeOrphanedRecursive("."); + + // + // Patch all nodes. // Identity identity = pathToIdentity("."); ObjectPrx topObj = communicator()->stringToProxy(identityToString(identity) + ':' + endpoints); @@ -109,7 +114,7 @@ IcePatch::Client::run(int argc, char* argv[]) string path = identityToPath(topDesc->directory->ice_getIdentity()); cout << pathToName(path) << endl; cout << "|" << endl; - printNodeDescSeq(topDesc->directory->getContents(), ""); + patch(topDesc->directory->getContents(), ""); } catch (const NodeAccessException& ex) { @@ -142,7 +147,7 @@ public: }; void -IcePatch::Client::printNodeDescSeq(const NodeDescSeq& nodeDescSeq, const string& indent) +IcePatch::Client::patch(const NodeDescSeq& nodeDescSeq, const string& indent) { if (nodeDescSeq.empty()) { @@ -217,7 +222,7 @@ IcePatch::Client::printNodeDescSeq(const NodeDescSeq& nodeDescSeq, const string& cout << "ok" << endl; cout << newIndent << "|" << endl; - printNodeDescSeq(directoryDesc->directory->getContents(), newIndent); + patch(directoryDesc->directory->getContents(), newIndent); } else { |