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:
ck
2010-06-07 17:13:11 +02:00
parent 4f772ea0e0
commit d0d61182cb
4 changed files with 44 additions and 38 deletions

View File

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