forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user