mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
update: fix check for installed version; equivalent to 13ecef5
Origin commit data ------------------ Commit:3a4e207aaa
Author: vanhofen <vanhofen@gmx.de> Date: 2018-01-12 (Fri, 12 Jan 2018) Origin message was: ------------------ - update: fix check for installed version; equivalent to13ecef5
This commit is contained in:
@@ -167,11 +167,13 @@ bool CFlashUpdate::checkOnlineVersion()
|
|||||||
std::vector<CUpdateMenuTarget*> update_t_list;
|
std::vector<CUpdateMenuTarget*> update_t_list;
|
||||||
|
|
||||||
CConfigFile _configfile('\t');
|
CConfigFile _configfile('\t');
|
||||||
const char * versionString = (_configfile.loadConfig(TARGET_PREFIX "/.version")) ? (_configfile.getString( "version", "????????????????").c_str()) : "????????????????";
|
std::string versionString = "????????????????";
|
||||||
|
if (_configfile.loadConfig(TARGET_PREFIX "/.version"))
|
||||||
|
versionString = _configfile.getString("version", "????????????????");
|
||||||
dprintf(DEBUG_NORMAL, "[update] file %s\n", g_settings.softupdate_url_file.c_str());
|
dprintf(DEBUG_NORMAL, "[update] file %s\n", g_settings.softupdate_url_file.c_str());
|
||||||
CFlashVersionInfo curInfo(versionString);
|
CFlashVersionInfo curInfo(versionString.c_str());
|
||||||
curVer = curInfo.getVersion();
|
curVer = curInfo.getVersion();
|
||||||
dprintf(DEBUG_NORMAL, "[update] current flash-version: %s (%d) date %s (%ld)\n", versionString, curInfo.getVersion(), curInfo.getDate(), curInfo.getDateTime());
|
dprintf(DEBUG_NORMAL, "[update] current flash-version: %s (%d) date %s (%ld)\n", versionString.c_str(), curInfo.getVersion(), curInfo.getDate(), curInfo.getDateTime());
|
||||||
|
|
||||||
std::ifstream urlFile(g_settings.softupdate_url_file.c_str());
|
std::ifstream urlFile(g_settings.softupdate_url_file.c_str());
|
||||||
if (urlFile >> url) {
|
if (urlFile >> url) {
|
||||||
|
Reference in New Issue
Block a user