summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch/NodeI.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-04-04 17:48:59 +0000
committerMarc Laukien <marc@zeroc.com>2002-04-04 17:48:59 +0000
commitd980b805b3594f31ee8438a1d9d2d1e885a094a3 (patch)
treeeecd0ea87af2e3539534fbf4c9bb8817c189dc1e /cpp/src/IcePatch/NodeI.cpp
parentmore IcePatch stuff (diff)
downloadice-d980b805b3594f31ee8438a1d9d2d1e885a094a3.tar.bz2
ice-d980b805b3594f31ee8438a1d9d2d1e885a094a3.tar.xz
ice-d980b805b3594f31ee8438a1d9d2d1e885a094a3.zip
more IcePatch stuff
Diffstat (limited to 'cpp/src/IcePatch/NodeI.cpp')
-rw-r--r--cpp/src/IcePatch/NodeI.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/cpp/src/IcePatch/NodeI.cpp b/cpp/src/IcePatch/NodeI.cpp
index ed3c3a11947..67e462b023a 100644
--- a/cpp/src/IcePatch/NodeI.cpp
+++ b/cpp/src/IcePatch/NodeI.cpp
@@ -44,13 +44,10 @@ IcePatch::DirectoryI::getContents(const Ice::Current& current)
StringSeq::const_iterator p;
for (p = paths.begin(); p != paths.end(); ++p)
{
- string::size_type pos;
- if ((pos = p->rfind(".md5")) != string::npos)
+ string suffix = getSuffix(*p);
+ if (suffix == "md5" || suffix == "bz2")
{
- if (p->size() == pos + 4)
- {
- continue;
- }
+ continue;
}
NodePrx node = NodePrx::uncheckedCast(_adapter->createProxy(pathToIdentity(*p)));