From d71dc6de98a02805d37892d7a5cb95623083216c Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Wed, 15 Dec 2010 07:11:46 +0000 Subject: [PATCH] only append a separator if one isn't already there; otherwise this screws up checks for canonical path existance when a path with a trialing / is passed in as the root and external paths are not allowed svn path=/trunk/KDE/kdelibs/; revision=1206641 --- packagestructure.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packagestructure.cpp b/packagestructure.cpp index afaeb5161..48e712da3 100644 --- a/packagestructure.cpp +++ b/packagestructure.cpp @@ -449,8 +449,8 @@ void PackageStructure::setPath(const QString &path) if (valid) { QFileInfo info(basePath); - if (info.isDir()) { - basePath.append("/"); + if (info.isDir() && !basePath.endsWith('/')) { + basePath.append('/'); } //kDebug() << "basePath is" << basePath; } else {