Skip to content

Commit

Permalink
Merge pull request #1904 from subutai-io/fix-update-1
Browse files Browse the repository at this point in the history
Fixed bug with missing update file
  • Loading branch information
Mike Savochkin authored Nov 9, 2019
2 parents 401f1d4 + 436d3f7 commit 3d59985
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hub/src/updater/ExecutableUpdater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ CExecutableUpdater::replace_executables(bool was_successful_downloaded) {
CSystemCallWrapper::give_write_permissions(dir);

do {
if (!src.exists()) {
qCritical("Source file is missins at %s", m_src_file_str.toStdString().c_str());
break;
}
if (dst.exists()) {
QFile ftmp(tmp);
if (ftmp.exists() && !ftmp.remove()) {
Expand Down

0 comments on commit 3d59985

Please sign in to comment.