Maemo: Manually add "execute" bit to debian/rules file.

The file is expected to be executable on Linux. However, when it
was created on Windows and checked into a repository, the
bit will not be set when pulling it onto a Linux system, resulting
in packaging failure.

Task-number: QTCREATORBUG-3277
Reviewed-by: kh1
Reviewed-by: dt
This commit is contained in:
Christian Kandeler
2010-12-03 16:57:25 +01:00
committed by con
parent a5c4903ab2
commit 31422318d6

View File

@@ -263,8 +263,12 @@ bool MaemoPackageCreationStep::copyDebianFiles(bool inSourceBuild)
}
// Workaround for Harmattan icon bug
if (harmattanWorkaroundNeeded && fileName == QLatin1String("rules"))
addWorkaroundForHarmattanBug(destFile);
if (fileName == QLatin1String("rules")) {
if (harmattanWorkaroundNeeded)
addWorkaroundForHarmattanBug(destFile);
QFile rulesFile(destFile);
rulesFile.setPermissions(rulesFile.permissions() | QFile::ExeUser);
}
}
QFile magicFile(magicFilePath);