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
This commit is contained in:
Aaron J. Seigo 2010-12-15 07:11:46 +00:00
parent b6edd5beca
commit d71dc6de98

View File

@ -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 {