Commit 18735b6e authored by Christian Kandeler's avatar Christian Kandeler

Maemo: Fix packaging in publisher.

The debian/rules file has to made executable, just like in the normal
packaging step.

Change-Id: Idcd20551c2720503ef7cea844dfad8f24281582c
Task-number: QTCREATORBUG-6866
Reviewed-by: default avatarAlessandro Portale <alessandro.portale@nokia.com>
parent 3ad7e508
......@@ -51,6 +51,7 @@
#include <QCoreApplication>
#include <QDir>
#include <QFile>
#include <QFileInfo>
#include <QStringList>
#include <QIcon>
......@@ -226,6 +227,12 @@ bool MaemoPublisherFremantleFree::copyRecursively(const QString &srcFilePath,
emit progressReport(saver.errorString(), ErrorOutput);
return false;
}
QFile rulesFile(tgtFilePath);
if (!rulesFile.setPermissions(rulesFile.permissions() | QFile::ExeUser)) {
emit progressReport(tr("Could not set execute permissions for rules file: %1")
.arg(rulesFile.errorString()));
return false;
}
} else {
QFile srcFile(srcFilePath);
if (!srcFile.copy(tgtFilePath)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment