mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
- update: fix display of installed version; ...
curiously it was only broken on ARM_HARDWARE Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -202,10 +202,12 @@ bool CFlashUpdate::selectHttpImage(void)
|
||||
int curVer, newVer, newfound = 0;
|
||||
|
||||
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);
|
||||
printf("current flash-version: %s (%d) date %s (%ld)\n", versionString, curInfo.getVersion(), curInfo.getDate(), curInfo.getDateTime());
|
||||
CFlashVersionInfo curInfo(versionString.c_str());
|
||||
printf("current flash-version: %s (%d) date %s (%ld)\n", versionString.c_str(), curInfo.getVersion(), curInfo.getDate(), curInfo.getDateTime());
|
||||
curVer = curInfo.getVersion();
|
||||
|
||||
httpTool.setStatusViewer(this);
|
||||
|
Reference in New Issue
Block a user