Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
e40a0ca9
Commit
e40a0ca9
authored
Apr 21, 2011
by
Christian Kandeler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Maemo: Fix directory deployment issues.
parent
2781453b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
12 deletions
+9
-12
src/plugins/qt4projectmanager/qt-maemo/maemodeploybymountstep.cpp
...ins/qt4projectmanager/qt-maemo/maemodeploybymountstep.cpp
+3
-1
src/plugins/qt4projectmanager/qt-maemo/maemoinstalltosysrootstep.cpp
.../qt4projectmanager/qt-maemo/maemoinstalltosysrootstep.cpp
+6
-11
No files found.
src/plugins/qt4projectmanager/qt-maemo/maemodeploybymountstep.cpp
View file @
e40a0ca9
...
...
@@ -323,8 +323,10 @@ bool MaemoMountAndCopyDeployStep::isDeploymentNeeded(const QString &hostName) co
const
int
deployableCount
=
deployables
->
deployableCount
();
for
(
int
i
=
0
;
i
<
deployableCount
;
++
i
)
{
const
MaemoDeployable
&
d
=
deployables
->
deployableAt
(
i
);
if
(
currentlyNeedsDeployment
(
hostName
,
d
))
if
(
currentlyNeedsDeployment
(
hostName
,
d
)
||
QFileInfo
(
d
.
localFilePath
).
isDir
())
{
m_filesToCopy
<<
d
;
}
}
return
!
m_filesToCopy
.
isEmpty
();
}
...
...
src/plugins/qt4projectmanager/qt-maemo/maemoinstalltosysrootstep.cpp
View file @
e40a0ca9
...
...
@@ -312,18 +312,13 @@ void MaemoCopyToSysrootStep::run(QFutureInterface<bool> &fi)
const
QFileInfo
localFileInfo
(
deployable
.
localFilePath
);
const
QString
targetFilePath
=
tc
->
sysroot
()
+
sep
+
deployable
.
remoteDir
+
sep
+
localFileInfo
.
fileName
();
if
(
QFileInfo
(
targetFilePath
).
exists
()
&&
MaemoGlobal
::
isFileNewerThan
(
targetFilePath
,
localFileInfo
.
lastModified
()))
{
continue
;
}
sysRootDir
.
mkpath
(
deployable
.
remoteDir
.
mid
(
1
));
QFile
::
remove
(
targetFilePath
);
if
(
!
QFile
::
copy
(
deployable
.
localFilePath
,
targetFilePath
))
{
emit
addOutput
(
tr
(
"Sysroot installation failed: "
"Could not copy '%1' to '%2'. Continuing anyway."
)
.
arg
(
QDir
::
toNativeSeparators
(
deployable
.
localFilePath
),
QDir
::
toNativeSeparators
(
targetFilePath
)),
ErrorMessageOutput
);
QString
errorMsg
;
MaemoGlobal
::
removeRecursively
(
targetFilePath
,
errorMsg
);
if
(
!
MaemoGlobal
::
copyRecursively
(
deployable
.
localFilePath
,
targetFilePath
,
&
errorMsg
))
{
emit
addOutput
(
tr
(
"Sysroot installation failed: $1
\n
"
" Continuing anyway."
).
arg
(
errorMsg
),
ErrorMessageOutput
);
}
QCoreApplication
::
processEvents
();
if
(
fi
.
isCanceled
())
{
...
...
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