Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
9faa4b5a
Commit
9faa4b5a
authored
Apr 16, 2010
by
ck
Browse files
Maemo: Only run dpkg if the package has been newly deployed.
Reviewed-by: kh1
parent
0a9087ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/qt-maemo/maemoruncontrol.cpp
View file @
9faa4b5a
...
...
@@ -127,6 +127,9 @@ void AbstractMaemoRunControl::startDeployment(bool forDebugging)
m_deployables
.
append
(
Deployable
(
packageFileName
(),
QFileInfo
(
executableOnHost
()).
canonicalPath
(),
&
MaemoRunConfiguration
::
wasDeployed
));
m_needsInstall
=
true
;
}
else
{
m_needsInstall
=
false
;
}
if
(
forDebugging
&&
m_runConfig
->
debuggingHelpersNeedDeployment
(
m_devConfig
.
host
))
{
...
...
@@ -317,9 +320,11 @@ QString AbstractMaemoRunControl::remoteInstallCommand() const
const
QString
AbstractMaemoRunControl
::
targetCmdLinePrefix
()
const
{
return
QString
::
fromLocal8Bit
(
"%1 && %2 chmod u+x %3 && source /etc/profile && "
)
.
arg
(
remoteInstallCommand
()).
arg
(
remoteSudo
())
.
arg
(
executableFilePathOnTarget
());
const
QString
&
installPrefix
=
m_needsInstall
?
remoteInstallCommand
()
+
QLatin1String
(
" && "
)
:
QString
();
return
QString
::
fromLocal8Bit
(
"%1%2 chmod u+x %3 && source /etc/profile && "
)
.
arg
(
installPrefix
).
arg
(
remoteSudo
()).
arg
(
executableFilePathOnTarget
());
}
QString
AbstractMaemoRunControl
::
targetCmdLineSuffix
()
const
...
...
src/plugins/qt4projectmanager/qt-maemo/maemoruncontrol.h
View file @
9faa4b5a
...
...
@@ -125,6 +125,7 @@ private:
updateFunc
updateTimestamp
;
};
QList
<
Deployable
>
m_deployables
;
bool
m_needsInstall
;
};
class
MaemoRunControl
:
public
AbstractMaemoRunControl
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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