summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch/Client.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-09-05 15:48:46 +0000
committerMarc Laukien <marc@zeroc.com>2002-09-05 15:48:46 +0000
commit22a89af145cfe3fd5fe9817ddd36c0191563cc67 (patch)
tree9d94fefa6080f0b4d81688a5617ee5a5302cbce9 /cpp/src/IcePatch/Client.cpp
parentfixes (diff)
downloadice-22a89af145cfe3fd5fe9817ddd36c0191563cc67.tar.bz2
ice-22a89af145cfe3fd5fe9817ddd36c0191563cc67.tar.xz
ice-22a89af145cfe3fd5fe9817ddd36c0191563cc67.zip
more icepatch work
Diffstat (limited to 'cpp/src/IcePatch/Client.cpp')
-rw-r--r--cpp/src/IcePatch/Client.cpp22
1 files changed, 1 insertions, 21 deletions
diff --git a/cpp/src/IcePatch/Client.cpp b/cpp/src/IcePatch/Client.cpp
index bbf34ee8743..77bd242e154 100644
--- a/cpp/src/IcePatch/Client.cpp
+++ b/cpp/src/IcePatch/Client.cpp
@@ -196,26 +196,6 @@ IcePatch::Client::run(int argc, char* argv[])
}
//
- // Check whether we have to patch at all.
- //
- Identity infoIdentity = pathToIdentity(".icepatch");
- ObjectPrx infoObj = communicator()->stringToProxy(identityToString(infoIdentity) + ':' + endpoints);
- InfoPrx info = InfoPrx::checkedCast(infoObj);
- assert(info);
- Long remoteStamp = info->getStamp();
- Long localStamp = readStamp();
- if(remoteStamp != localStamp)
- {
- localStamp = remoteStamp;
- writeStamp(localStamp);
- }
- else if(!(properties->getPropertyAsInt("IcePatch.PatchAlways") > 0))
- {
- cout << "You are up-to-date. No patching is necessary." << endl;
- return EXIT_SUCCESS;
- }
-
- //
// Check whether we want to remove orphaned files.
//
_remove = properties->getPropertyAsInt("IcePatch.RemoveOrphaned") > 0;
@@ -388,7 +368,7 @@ IcePatch::Client::patch(const DirectoryDescPtr& dirDesc, const string& indent) c
orphaned.reserve(fullDirectoryListing.size());
for(StringSeq::const_iterator p = fullDirectoryListing.begin(); p != fullDirectoryListing.end(); ++p)
{
- if(*p != ".icepatch" && getSuffix(*p) != "md5")
+ if(getSuffix(*p) != "md5")
{
orphaned.push_back(*p);
}