forked from qt-creator/qt-creator
Maemo deployment: Force remote file name to be same as local file name.
INSTALLS does not support an arbitrary target file name. Reviewed-by: kh1
This commit is contained in:
@@ -181,8 +181,9 @@ bool MaemoPackageCreationStep::createPackage()
|
||||
for (int i = 0; i < m_packageContents->rowCount(); ++i) {
|
||||
const MaemoPackageContents::Deployable &d
|
||||
= m_packageContents->deployableAt(i);
|
||||
const QString targetFile = debianRoot.path() + '/' + d.remoteFilePath;
|
||||
const QString absTargetDir = QFileInfo(targetFile).dir().path();
|
||||
const QString absTargetDir = debianRoot.path() + '/' + d.remoteDir;
|
||||
const QString targetFile
|
||||
= absTargetDir + '/' + QFileInfo(d.localFilePath).fileName();
|
||||
const QString relTargetDir = debianRoot.relativeFilePath(absTargetDir);
|
||||
if (!debianRoot.exists(relTargetDir)
|
||||
&& !debianRoot.mkpath(relTargetDir)) {
|
||||
|
||||
Reference in New Issue
Block a user