mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +02:00
update: fix display of installed version; ...
curiously it was only broken on ARM_HARDWARE
Origin commit data
------------------
Commit: d6bc4e2e7b
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-11 (Sat, 11 Nov 2017)
Origin message was:
------------------
- update: fix display of installed version; ...
curiously it was only broken on ARM_HARDWARE
This commit is contained in:
@@ -218,10 +218,12 @@ bool CFlashUpdate::selectHttpImage(void)
|
|||||||
int curVer, newVer, newfound = 0;
|
int curVer, newVer, newfound = 0;
|
||||||
|
|
||||||
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", "????????????????");
|
||||||
|
|
||||||
CFlashVersionInfo curInfo(versionString);
|
CFlashVersionInfo curInfo(versionString.c_str());
|
||||||
printf("current flash-version: %s (%d) date %s (%ld)\n", versionString, curInfo.getVersion(), curInfo.getDate(), curInfo.getDateTime());
|
printf("current flash-version: %s (%d) date %s (%ld)\n", versionString.c_str(), curInfo.getVersion(), curInfo.getDate(), curInfo.getDateTime());
|
||||||
curVer = curInfo.getVersion();
|
curVer = curInfo.getVersion();
|
||||||
|
|
||||||
httpTool.setStatusViewer(this);
|
httpTool.setStatusViewer(this);
|
||||||
|
Reference in New Issue
Block a user