diff options
author | Christian Kandeler <christian.kandeler@theqtcompany.com> | 2015-07-31 12:20:13 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@theqtcompany.com> | 2015-07-31 12:20:13 +0200 |
commit | 43ddde70dd61f9adb2c3b20ee86522494538ca0e (patch) | |
tree | 18e6fca3eb8e2122f2dc273acc5f875d32ba3760 /src/lib/corelib/buildgraph/productinstaller.cpp | |
parent | 92cf9460c46d707aeac02ef8f6597a4037df0964 (diff) | |
parent | 33c9a2721b76e8a7affa19e924cbaf4e4c91060b (diff) |
Merge branch 1.4 into master.
Change-Id: I2ff37ef7c00063f738f7691071c4b638dd2dc7c8
Diffstat (limited to 'src/lib/corelib/buildgraph/productinstaller.cpp')
-rw-r--r-- | src/lib/corelib/buildgraph/productinstaller.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/corelib/buildgraph/productinstaller.cpp b/src/lib/corelib/buildgraph/productinstaller.cpp index b94239f63..8f54b4358 100644 --- a/src/lib/corelib/buildgraph/productinstaller.cpp +++ b/src/lib/corelib/buildgraph/productinstaller.cpp @@ -31,7 +31,9 @@ #include "artifact.h" #include "productbuilddata.h" + #include <language/language.h> +#include <language/propertymapinternal.h> #include <logging/translator.h> #include <tools/qbsassert.h> #include <tools/error.h> @@ -121,13 +123,13 @@ QString ProductInstaller::targetFilePath(const TopLevelProject *project, // This has the same effect as if installSourceBase would equal the directory of the file. targetFilePath = FileInfo::fileName(sourceFilePath); } else { - const QString localAbsBasePath = QDir::cleanPath(productSourceDir + QLatin1Char('/') - + installSourceBase); + const QString localAbsBasePath = FileInfo::resolvePath(QDir::cleanPath(productSourceDir), + QDir::cleanPath(installSourceBase)); targetFilePath = sourceFilePath; if (!targetFilePath.startsWith(localAbsBasePath)) { throw ErrorInfo(Tr::tr("Cannot install '%1', because it doesn't start with the" " value of qbs.installSourceBase '%2'.").arg(sourceFilePath, - installSourceBase)); + localAbsBasePath)); } targetFilePath.remove(0, localAbsBasePath.length() + 1); |