forked from qt-creator/qt-creator
Maemo: Add Qt dependency to debian/control.
This commit is contained in:
@@ -240,6 +240,19 @@ bool MaemoTemplatesManager::adaptControlFile(const Project *project)
|
|||||||
|
|
||||||
adaptControlFileField(controlContents, "Section", "user/hidden");
|
adaptControlFileField(controlContents, "Section", "user/hidden");
|
||||||
adaptControlFileField(controlContents, "Priority", "optional");
|
adaptControlFileField(controlContents, "Priority", "optional");
|
||||||
|
const int buildDependsOffset = controlContents.indexOf("Build-Depends:");
|
||||||
|
if (buildDependsOffset == -1) {
|
||||||
|
qWarning("Weird: no Build-Depends field in debian/control file.");
|
||||||
|
} else {
|
||||||
|
int buildDependsNewlineOffset
|
||||||
|
= controlContents.indexOf('\n', buildDependsOffset);
|
||||||
|
if (buildDependsNewlineOffset == -1) {
|
||||||
|
controlContents += '\n';
|
||||||
|
buildDependsNewlineOffset = controlContents.length() - 1;
|
||||||
|
}
|
||||||
|
controlContents.insert(buildDependsNewlineOffset,
|
||||||
|
", libqt4-dev (>= 4.6.2)");
|
||||||
|
}
|
||||||
|
|
||||||
controlFile.resize(0);
|
controlFile.resize(0);
|
||||||
controlFile.write(controlContents);
|
controlFile.write(controlContents);
|
||||||
|
|||||||
Reference in New Issue
Block a user