Do not set downloaded file time
Because actually downloaded file can be newer than stated in updates.json
This commit is contained in:
parent
055ba92667
commit
461f1f433d
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user