1 ///////////////////////////////////////////////////////////////////////////////
2 // MuldeR's Utilities for Qt
3 // Copyright (C) 2004-2016 LoRd_MuldeR <MuldeR2@GMX.de>
5 // This library is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation; either
8 // version 2.1 of the License, or (at your option) any later version.
10 // This library is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // Lesser General Public License for more details.
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with this library; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 // http://www.gnu.org/licenses/lgpl-2.1.txt
20 //////////////////////////////////////////////////////////////////////////////////
22 #include <MUtils/Global.h>
23 #include <MUtils/UpdateChecker.h>
24 #include <MUtils/OSSupport.h>
25 #include <MUtils/Exception.h>
27 #include <QStringList>
35 using namespace MUtils
;
37 ///////////////////////////////////////////////////////////////////////////////
39 ///////////////////////////////////////////////////////////////////////////////
41 static const char *header_id
= "!Update";
43 static const char *mirror_url_postfix
[] =
50 static const char *update_mirrors_prim
[] =
52 "http://muldersoft.com/",
53 "http://mulder.bplaced.net/", //"http://mulder.cwsurf.de/",
54 "http://mulder.6te.net/",
55 "http://mulder.webuda.com/", //"http://mulder.byethost13.com/",
56 "http://mulder.pe.hu/", //"http://muldersoft.kilu.de/",
57 "http://muldersoft.square7.ch/", //"http://muldersoft.zxq.net/",
58 "http://muldersoft.co.nf/",
59 "http://muldersoft.eu.pn/",
60 "http://muldersoft.lima-city.de/",
61 "http://www.muldersoft.keepfree.de/",
62 "http://lamexp.sourceforge.net/",
63 "http://lordmulder.github.io/LameXP/",
64 "http://lord_mulder.bitbucket.org/",
65 "http://www.tricksoft.de/",
69 static const char *update_mirrors_back
[] =
71 "http://mplayer.savedonthe.net/",
75 static const char *known_hosts
[] = //Taken form: http://www.alexa.com/topsites !!!
77 "http://www.163.com/",
78 "http://www.7-zip.org/",
79 "http://www.ac3filter.net/",
80 "http://clbianco.altervista.org/",
81 "http://status.aws.amazon.com/",
82 "http://build.antergos.com/",
83 "http://www.aol.com/",
84 "http://www.apache.org/",
85 "http://www.apple.com/",
86 "http://www.adobe.com/",
87 "http://archive.org/web/",
88 "http://www.artlebedev.ru/",
89 "http://web.audacityteam.org/",
90 "http://status.automattic.com/",
91 "http://www.avidemux.org/",
92 "http://www.babylon.com/",
93 "http://www.baidu.com/",
94 "http://bandcamp.com/",
95 "http://www.bbc.co.uk/",
96 "http://www.berlios.de/",
97 "http://www.bing.com/",
98 "http://www.bingeandgrab.com/",
99 "http://www.bucketheadpikes.com/",
100 "http://www.buckethead-coop.com/",
101 "http://www.buzzfeed.com/",
102 "http://www.ccc.de/",
103 "http://www.citizeninsomniac.com/WMV/",
104 "http://www.cnet.com/",
106 "http://www.codeplex.com/",
107 "http://www.codeproject.com/",
108 "http://www.der-postillon.com/",
109 "http://www.ebay.com/",
110 "http://www.equation.com/",
111 "http://www.farbrausch.de/",
113 "http://fedoraproject.org/wiki/Fedora_Project_Wiki",
114 "http://blog.fefe.de/",
115 "http://www.ffmpeg.org/",
116 "http://blog.flickr.net/en",
117 "http://free-codecs.com/",
118 "http://git-scm.com/",
119 "http://doc.gitlab.com/",
120 "http://www.gmx.net/",
121 "http://news.gnome.org/",
122 "http://www.gnu.org/",
124 "http://code.google.com/",
125 "http://haali.su/mkv/",
126 "http://www.heise.de/",
127 "http://www.huffingtonpost.co.uk/",
128 "http://www.iana.org/",
129 "http://www.imdb.com/",
130 "http://www.imgburn.com/",
132 "http://www.jd.com/contact/",
133 "http://www.jiscdigitalmedia.ac.uk/",
134 "http://kannmanumdieuhrzeitschonnbierchentrinken.de/",
135 "http://mirrors.kernel.org/",
136 "http://komisar.gin.by/",
137 "http://lame.sourceforge.net/",
138 "http://www.libav.org/",
139 "http://blog.linkedin.com/",
140 "http://www.linuxmint.com/",
141 "http://www.livedoor.com/",
142 "http://www.livejournal.com/",
143 "http://longplayer.org/",
144 "http://go.mail.ru/",
145 "http://marknelson.us/",
146 "http://www.mediafire.com/about/",
147 "http://www.mod-technologies.com/",
148 "http://ftp.mozilla.org/",
149 "http://mplayerhq.hu/",
150 "http://www.msn.com/en-us/",
151 "http://wiki.multimedia.cx/",
152 "http://www.nch.com.au/",
153 "http://mirror.netcologne.de/",
154 "http://oss.netfarm.it/",
155 "http://blog.netflix.com/",
156 "http://netrenderer.de/",
157 "http://www.nytimes.com/",
158 "http://www.opera.com/",
159 "http://www.partha.com/",
160 "http://pastebin.com/",
161 "http://pastie.org/",
162 "http://portableapps.com/about",
163 "http://www.portablefreeware.com/",
164 "http://support.proboards.com/",
165 "http://www.qq.com/",
167 "http://www.quakelive.com/",
168 "http://rationalqm.us/mine.html",
169 "http://www.seamonkey-project.org/",
170 "http://selfhtml.org/",
171 "http://www.sina.com.cn/",
172 "http://www.sohu.com/",
173 "http://help.sogou.com/",
174 "http://sourceforge.net/",
175 "http://www.spiegel.de/",
176 "http://www.sputnikmusic.com/",
177 "http://stackoverflow.com/",
178 "http://www.t-online.de/",
179 "http://www.tagesschau.de/",
180 "http://tdm-gcc.tdragon.net/",
181 "http://www.tdrsmusic.com/",
182 "http://www.ubuntu.com/",
183 "http://www.uol.com.br/",
184 "http://www.videohelp.com/",
185 "http://www.videolan.org/",
186 "http://virtualdub.org/",
187 "http://blog.virustotal.com/",
188 "http://www.vkgoeswild.com/",
189 "http://www.warr.org/WAhere.html",
190 "http://www.weibo.com/login.php",
191 "http://status.wikimedia.org/",
192 "http://www.winamp.com/",
193 "http://www.winhoros.de/",
196 "http://xhmikosr.1f0.de/",
198 "http://us.mail.yahoo.com/",
199 "http://www.youtube.com/yt/about/",
200 "http://www.zedo.com/",
201 "http://ffmpeg.zeranoe.com/",
205 static const int MIN_CONNSCORE
= 8;
206 static const int VERSION_INFO_EXPIRES_MONTHS
= 6;
207 static char *USER_AGENT_STR
= "Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20111106 IceCat/7.0.1";
210 static int getMaxProgress(void)
212 int counter
= MIN_CONNSCORE
+ 2;
213 for(int i
= 0; update_mirrors_prim
[i
]; i
++) counter
++;
214 for(int i
= 0; update_mirrors_back
[i
]; i
++) counter
++;
218 ////////////////////////////////////////////////////////////
220 ////////////////////////////////////////////////////////////
222 UpdateCheckerInfo::UpdateCheckerInfo(void)
227 void UpdateCheckerInfo::resetInfo(void)
230 m_buildDate
.setDate(1900, 1, 1);
231 m_downloadSite
.clear();
232 m_downloadAddress
.clear();
233 m_downloadFilename
.clear();
234 m_downloadFilecode
.clear();
235 m_downloadChecksum
.clear();
238 bool UpdateCheckerInfo::isComplete(void)
240 if(this->m_buildNo
< 1) return false;
241 if(this->m_buildDate
.year() < 2010) return false;
242 if(this->m_downloadSite
.isEmpty()) return false;
243 if(this->m_downloadAddress
.isEmpty()) return false;
244 if(this->m_downloadFilename
.isEmpty()) return false;
245 if(this->m_downloadFilecode
.isEmpty()) return false;
246 if(this->m_downloadChecksum
.isEmpty()) return false;
251 ////////////////////////////////////////////////////////////
252 // Constructor & Destructor
253 ////////////////////////////////////////////////////////////
255 UpdateChecker::UpdateChecker(const QString
&binWGet
, const QString
&binGnuPG
, const QString
&binKeys
, const QString
&applicationId
, const quint32
&installedBuildNo
, const bool betaUpdates
, const bool testMode
)
257 m_updateInfo(new UpdateCheckerInfo()),
258 m_binaryWGet(binWGet
),
259 m_binaryGnuPG(binGnuPG
),
260 m_binaryKeys(binKeys
),
261 m_applicationId(applicationId
),
262 m_installedBuildNo(installedBuildNo
),
263 m_betaUpdates(betaUpdates
),
264 m_testMode(testMode
),
265 m_maxProgress(getMaxProgress())
268 m_status
= UpdateStatus_NotStartedYet
;
271 if(m_binaryWGet
.isEmpty() || m_binaryGnuPG
.isEmpty() || m_binaryKeys
.isEmpty())
273 MUTILS_THROW("Tools not initialized correctly!");
277 UpdateChecker::~UpdateChecker(void)
281 ////////////////////////////////////////////////////////////
282 // Protected functions
283 ////////////////////////////////////////////////////////////
285 void UpdateChecker::run(void)
287 qDebug("Update checker thread started!");
288 MUTILS_EXCEPTION_HANDLER(m_testMode
? testKnownHosts() : checkForUpdates());
289 qDebug("Update checker thread completed.");
292 void UpdateChecker::checkForUpdates(void)
294 // ----- Initialization ----- //
297 m_updateInfo
->resetInfo();
301 // ----- Test Internet Connection ----- //
303 int connectionScore
= 0;
304 int maxConnectTries
= (3 * MIN_CONNSCORE
) / 2;
306 log("Checking internet connection...");
307 setStatus(UpdateStatus_CheckingConnection
);
309 const int networkStatus
= OS::network_status();
310 if(networkStatus
== OS::NETWORK_TYPE_NON
)
312 log("", "Operating system reports that the computer is currently offline !!!");
313 setProgress(m_maxProgress
);
314 setStatus(UpdateStatus_ErrorNoConnection
);
320 // ----- Test Known Hosts Connectivity ----- //
322 QStringList hostList
;
323 for(int i
= 0; known_hosts
[i
]; i
++)
325 hostList
<< QString::fromLatin1(known_hosts
[i
]);
328 while(!(hostList
.isEmpty() || (connectionScore
>= MIN_CONNSCORE
) || (maxConnectTries
< 1)))
330 switch(tryContactHost(hostList
.takeAt(next_rand32() % hostList
.count())))
332 case 01: connectionScore
+= 1; break;
333 case 02: connectionScore
+= 2; break;
334 default: maxConnectTries
-= 1; break;
336 setProgress(qBound(1, connectionScore
+ 1, MIN_CONNSCORE
+ 1));
340 if(connectionScore
< MIN_CONNSCORE
)
342 log("", "Connectivity test has failed: Internet connection appears to be broken!");
343 setProgress(m_maxProgress
);
344 setStatus(UpdateStatus_ErrorConnectionTestFailed
);
348 // ----- Build Mirror List ----- //
350 log("", "----", "", "Checking for updates online...");
351 setStatus(UpdateStatus_FetchingUpdates
);
353 QStringList mirrorList
;
354 for(int index
= 0; update_mirrors_prim
[index
]; index
++)
356 mirrorList
<< QString::fromLatin1(update_mirrors_prim
[index
]);
359 if(const int len
= mirrorList
.count())
361 const int rounds
= len
* 1097;
362 for(int i
= 0; i
< rounds
; i
++)
364 mirrorList
.swap(i
% len
, next_rand32() % len
);
368 for(int index
= 0; update_mirrors_back
[index
]; index
++)
370 mirrorList
<< QString::fromLatin1(update_mirrors_back
[index
]);
373 // ----- Fetch Update Info From Server ----- //
375 while(!mirrorList
.isEmpty())
377 QString currentMirror
= mirrorList
.takeFirst();
378 setProgress(m_progress
+ 1);
381 if(tryUpdateMirror(m_updateInfo
.data(), currentMirror
))
392 setProgress(m_maxProgress
);
396 if(m_updateInfo
->m_buildNo
> m_installedBuildNo
)
398 setStatus(UpdateStatus_CompletedUpdateAvailable
);
400 else if(m_updateInfo
->m_buildNo
== m_installedBuildNo
)
402 setStatus(UpdateStatus_CompletedNoUpdates
);
406 setStatus(UpdateStatus_CompletedNewVersionOlder
);
411 setStatus(UpdateStatus_ErrorFetchUpdateInfo
);
415 void UpdateChecker::testKnownHosts(void)
417 QStringList hostList
;
418 for(int i
= 0; known_hosts
[i
]; i
++)
420 hostList
<< QString::fromLatin1(known_hosts
[i
]);
423 qDebug("\n[Known Hosts]");
424 log("Testing all known hosts...", "", "---");
426 int hostCount
= hostList
.count();
427 while(!hostList
.isEmpty())
429 QString currentHost
= hostList
.takeFirst();
430 qDebug("Testing: %s", currentHost
.toLatin1().constData());
431 log("", "Testing:", currentHost
, "");
432 QString outFile
= QString("%1/%2.htm").arg(temp_folder(), rand_str());
434 if(!getFile(currentHost
, outFile
, 0, &httpOk
))
438 qWarning("\nConnectivity test was SLOW on the following site:\n%s\n", currentHost
.toLatin1().constData());
442 qWarning("\nConnectivity test FAILED on the following site:\n%s\n", currentHost
.toLatin1().constData());
446 QFile::remove(outFile
);
450 ////////////////////////////////////////////////////////////
452 ////////////////////////////////////////////////////////////
454 void UpdateChecker::setStatus(const int status
)
456 if(m_status
!= status
)
459 emit
statusChanged(status
);
463 void UpdateChecker::setProgress(const int progress
)
465 if(m_progress
!= progress
)
467 m_progress
= progress
;
468 emit
progressChanged(progress
);
472 void UpdateChecker::log(const QString
&str1
, const QString
&str2
, const QString
&str3
, const QString
&str4
)
474 if(!str1
.isNull()) emit
messageLogged(str1
);
475 if(!str2
.isNull()) emit
messageLogged(str2
);
476 if(!str3
.isNull()) emit
messageLogged(str3
);
477 if(!str4
.isNull()) emit
messageLogged(str4
);
480 int UpdateChecker::tryContactHost(const QString
&url
)
482 int result
= -1; bool httpOkay
= false;
483 const QString outFile
= QString("%1/%2.htm").arg(temp_folder(), rand_str());
484 log("", "Testing host:", url
);
486 if(getFile(url
, outFile
, 0, &httpOkay
))
488 log("Connection to host was established successfully.");
495 log("Connection to host timed out after HTTP OK was received.");
500 log("Connection failed: The host could not be reached!");
505 QFile::remove(outFile
);
509 bool UpdateChecker::tryUpdateMirror(UpdateCheckerInfo
*updateInfo
, const QString
&url
)
511 bool success
= false;
512 log("", "Trying mirror:", url
);
514 const QString randPart
= rand_str();
515 const QString outFileVers
= QString("%1/%2.ver").arg(temp_folder(), randPart
);
516 const QString outFileSign
= QString("%1/%2.sig").arg(temp_folder(), randPart
);
518 if(getUpdateInfo(url
, outFileVers
, outFileSign
))
520 log("", "Download okay, checking signature:");
521 if(checkSignature(outFileVers
, outFileSign
))
523 log("", "Signature okay, parsing info:");
524 success
= parseVersionInfo(outFileVers
, updateInfo
);
528 log("", "Bad signature, take care!");
533 log("", "Download has failed!");
536 QFile::remove(outFileVers
);
537 QFile::remove(outFileSign
);
542 bool UpdateChecker::getUpdateInfo(const QString
&url
, const QString
&outFileVers
, const QString
&outFileSign
)
544 log("", "Downloading update info:");
545 if(!getFile(QString("%1%2" ).arg(url
, mirror_url_postfix
[m_betaUpdates
? 1 : 0]), outFileVers
))
550 log("", "Downloading signature:");
551 if(!getFile(QString("%1%2.sig2").arg(url
, mirror_url_postfix
[m_betaUpdates
? 1 : 0]), outFileSign
))
559 bool UpdateChecker::getFile(const QString
&url
, const QString
&outFile
, const unsigned int maxRedir
, bool *httpOk
)
561 for(int i
= 0; i
< 2; i
++)
563 if(getFile(url
, (i
> 0), outFile
, maxRedir
, httpOk
))
571 bool UpdateChecker::getFile(const QString
&url
, const bool forceIp4
, const QString
&outFile
, const unsigned int maxRedir
, bool *httpOk
)
573 QFileInfo
output(outFile
);
574 output
.setCaching(false);
575 if(httpOk
) *httpOk
= false;
579 QFile::remove(output
.canonicalFilePath());
587 init_process(process
, output
.absolutePath());
595 args
<< "-T" << "15" << "--no-cache" << "--no-dns-cache" << QString().sprintf("--max-redirect=%u", maxRedir
);
596 args
<< QString("--referer=%1://%2/").arg(QUrl(url
).scheme(), QUrl(url
).host()) << "-U" << USER_AGENT_STR
;
597 args
<< "-O" << output
.fileName() << url
;
600 connect(&process
, SIGNAL(error(QProcess::ProcessError
)), &loop
, SLOT(quit()));
601 connect(&process
, SIGNAL(finished(int,QProcess::ExitStatus
)), &loop
, SLOT(quit()));
602 connect(&process
, SIGNAL(readyRead()), &loop
, SLOT(quit()));
605 timer
.setSingleShot(true);
606 connect(&timer
, SIGNAL(timeout()), &loop
, SLOT(quit()));
608 const QRegExp
httpResponseOK("200 OK$");
610 process
.start(m_binaryWGet
, args
);
612 if(!process
.waitForStarted())
619 while(process
.state() != QProcess::NotRunning
)
622 const bool bTimeOut
= (!timer
.isActive());
623 while(process
.canReadLine())
625 QString line
= QString::fromLatin1(process
.readLine()).simplified();
626 if(line
.contains(httpResponseOK
))
628 line
.append(" [OK]");
629 if(httpOk
) *httpOk
= true;
635 qWarning("WGet process timed out <-- killing!");
637 process
.waitForFinished();
638 log("!!! TIMEOUT !!!");
644 timer
.disconnect(&timer
, SIGNAL(timeout()), &loop
, SLOT(quit()));
646 log(QString().sprintf("Exited with code %d", process
.exitCode()));
647 return (process
.exitCode() == 0) && output
.exists() && output
.isFile();
650 bool UpdateChecker::checkSignature(const QString
&file
, const QString
&signature
)
652 if(QFileInfo(file
).absolutePath().compare(QFileInfo(signature
).absolutePath(), Qt::CaseInsensitive
) != 0)
654 qWarning("CheckSignature: File and signature should be in same folder!");
658 QString
keyRingPath(m_binaryKeys
);
659 bool removeKeyring
= false;
660 if(QFileInfo(file
).absolutePath().compare(QFileInfo(m_binaryKeys
).absolutePath(), Qt::CaseInsensitive
) != 0)
662 keyRingPath
= make_temp_file(QFileInfo(file
).absolutePath(), "gpg");
663 removeKeyring
= true;
664 if(!QFile::copy(m_binaryKeys
, keyRingPath
))
666 qWarning("CheckSignature: Failed to copy the key-ring file!");
672 init_process(process
, QFileInfo(file
).absolutePath());
675 connect(&process
, SIGNAL(error(QProcess::ProcessError
)), &loop
, SLOT(quit()));
676 connect(&process
, SIGNAL(finished(int,QProcess::ExitStatus
)), &loop
, SLOT(quit()));
677 connect(&process
, SIGNAL(readyRead()), &loop
, SLOT(quit()));
679 process
.start(m_binaryGnuPG
, QStringList() << "--homedir" << "." << "--keyring" << QFileInfo(keyRingPath
).fileName() << QFileInfo(signature
).fileName() << QFileInfo(file
).fileName());
681 if(!process
.waitForStarted())
685 remove_file(keyRingPath
);
690 while(process
.state() == QProcess::Running
)
693 while(process
.canReadLine())
695 log(QString::fromLatin1(process
.readLine()).simplified());
701 remove_file(keyRingPath
);
704 log(QString().sprintf("Exited with code %d", process
.exitCode()));
705 return (process
.exitCode() == 0);
708 bool UpdateChecker::parseVersionInfo(const QString
&file
, UpdateCheckerInfo
*updateInfo
)
710 QRegExp
value("^(\\w+)=(.+)$");
711 QRegExp
section("^\\[(.+)\\]$");
713 QDate updateInfoDate
;
714 updateInfo
->resetInfo();
717 if(!data
.open(QIODevice::ReadOnly
))
719 qWarning("Cannot open update info file for reading!");
728 QString line
= QString::fromLatin1(data
.readLine()).trimmed();
729 if(section
.indexIn(line
) >= 0)
731 log(QString("Sec: [%1]").arg(section
.cap(1)));
732 inSec
= (section
.cap(1).compare(m_applicationId
, Qt::CaseInsensitive
) == 0);
733 inHdr
= (section
.cap(1).compare(QString::fromLatin1(header_id
), Qt::CaseInsensitive
) == 0);
736 if(inSec
&& (value
.indexIn(line
) >= 0))
738 log(QString("Val: '%1' ==> '%2").arg(value
.cap(1), value
.cap(2)));
739 if(value
.cap(1).compare("BuildNo", Qt::CaseInsensitive
) == 0)
742 const unsigned int temp
= value
.cap(2).toUInt(&ok
);
743 if(ok
) updateInfo
->m_buildNo
= temp
;
745 else if(value
.cap(1).compare("BuildDate", Qt::CaseInsensitive
) == 0)
747 const QDate temp
= QDate::fromString(value
.cap(2).trimmed(), Qt::ISODate
);
748 if(temp
.isValid()) updateInfo
->m_buildDate
= temp
;
750 else if(value
.cap(1).compare("DownloadSite", Qt::CaseInsensitive
) == 0)
752 updateInfo
->m_downloadSite
= value
.cap(2).trimmed();
754 else if(value
.cap(1).compare("DownloadAddress", Qt::CaseInsensitive
) == 0)
756 updateInfo
->m_downloadAddress
= value
.cap(2).trimmed();
758 else if(value
.cap(1).compare("DownloadFilename", Qt::CaseInsensitive
) == 0)
760 updateInfo
->m_downloadFilename
= value
.cap(2).trimmed();
762 else if(value
.cap(1).compare("DownloadFilecode", Qt::CaseInsensitive
) == 0)
764 updateInfo
->m_downloadFilecode
= value
.cap(2).trimmed();
766 else if(value
.cap(1).compare("DownloadChecksum", Qt::CaseInsensitive
) == 0)
768 updateInfo
->m_downloadChecksum
= value
.cap(2).trimmed();
771 if(inHdr
&& (value
.indexIn(line
) >= 0))
773 log(QString("Val: '%1' ==> '%2").arg(value
.cap(1), value
.cap(2)));
774 if(value
.cap(1).compare("TimestampCreated", Qt::CaseInsensitive
) == 0)
776 QDate temp
= QDate::fromString(value
.cap(2).trimmed(), Qt::ISODate
);
777 if(temp
.isValid()) updateInfoDate
= temp
;
782 if(!updateInfoDate
.isValid())
784 updateInfo
->resetInfo();
785 log("WARNING: Version info timestamp is missing!");
789 const QDate currentDate
= OS::current_date();
790 if(updateInfoDate
.addMonths(VERSION_INFO_EXPIRES_MONTHS
) < currentDate
)
792 updateInfo
->resetInfo();
793 log(QString::fromLatin1("WARNING: This version info has expired at %1!").arg(updateInfoDate
.addMonths(VERSION_INFO_EXPIRES_MONTHS
).toString(Qt::ISODate
)));
796 else if(currentDate
< updateInfoDate
)
798 log("Version info is from the future, take care!");
799 qWarning("Version info is from the future, take care!");
802 if(!updateInfo
->isComplete())
804 log("WARNING: Version info is incomplete!");
811 ////////////////////////////////////////////////////////////
813 ////////////////////////////////////////////////////////////
817 ////////////////////////////////////////////////////////////
819 ////////////////////////////////////////////////////////////