Do not set downloaded file time

Because actually downloaded file can be newer than stated in updates.json
This commit is contained in:
Gres 2020-04-12 18:40:17 +03:00
parent 055ba92667
commit 461f1f433d
2 changed files with 0 additions and 22 deletions

View File

@ -1275,15 +1275,6 @@ Error %3</source>
в %2
Текст %3</translation>
</message>
<message>
<location filename="../../src/service/updates.cpp" line="1093"/>
<source>Failed to set modification time of file
%1
to %2. Error %3</source>
<translation>Ошибка установки времени файла
%1
на %2. Текст %3</translation>
</message>
</context>
<context>
<name>WebPage</name>

View File

@ -1084,19 +1084,6 @@ void Installer::install(const File &file)
.arg(f.fileName(), file.expandedPath, f.errorString()));
return;
}
if (!file.versionDate.isValid())
return;
if (!f.open(QFile::WriteOnly | QFile::Append) ||
!f.setFileTime(file.versionDate, QFile::FileTime::FileModificationTime)) {
errors_.append(QApplication::translate("Updates",
"Failed to set modification time of "
"file\n%1\nto %2. Error %3")
.arg(f.fileName(),
file.versionDate.toString(Qt::ISODate),
f.errorString()));
}
}
QString Installer::errorString() const