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:
parent
b6edd5beca
commit
d71dc6de98
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user