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
}
// 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);