Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
f1676515
Commit
f1676515
authored
Aug 27, 2010
by
Christian Kandeler
Browse files
Maemo: Add Qt dependency to debian/control.
parent
e02e0f8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/qt-maemo/maemotemplatesmanager.cpp
View file @
f1676515
...
...
@@ -240,6 +240,19 @@ bool MaemoTemplatesManager::adaptControlFile(const Project *project)
adaptControlFileField
(
controlContents
,
"Section"
,
"user/hidden"
);
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
.
write
(
controlContents
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment