blob: aca28208bdabe406a073a75ec06d88688df86b80 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- Telegram/SourceFiles/core/update_checker.cpp.orig 2019-10-07 15:58:21 UTC
+++ Telegram/SourceFiles/core/update_checker.cpp
@@ -1459,6 +1459,9 @@ int UpdateChecker::size() const {
//}
bool checkReadyUpdate() {
+#ifdef Q_OS_FREEBSD
+ return false;
+#endif
QString readyFilePath = cWorkingDir() + qsl("tupdates/temp/ready"), readyPath = cWorkingDir() + qsl("tupdates/temp");
if (!QFile(readyFilePath).exists() || cExeName().isEmpty()) {
if (QDir(cWorkingDir() + qsl("tupdates/ready")).exists() || QDir(cWorkingDir() + qsl("tupdates/temp")).exists()) {
@@ -1511,6 +1514,9 @@ bool checkReadyUpdate() {
#elif defined Q_OS_LINUX // Q_OS_MAC
QString curUpdater = (cExeDir() + qsl("Updater"));
QFileInfo updater(cWorkingDir() + qsl("tupdates/temp/Updater"));
+#elif defined Q_OS_FREEBSD
+ QString curUpdater;
+ QFileInfo updater;
#endif // Q_OS_LINUX
if (!updater.exists()) {
QFileInfo current(curUpdater);
|