mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
gui/update.cpp: fix image update check,
enable save u-boot menu switch
This commit is contained in:
@@ -169,6 +169,7 @@ bool CFlashUpdate::checkOnlineVersion()
|
|||||||
if (httpTool.downloadFile(url, gTmpPath LIST_OF_UPDATES_LOCAL_FILENAME, 20)) {
|
if (httpTool.downloadFile(url, gTmpPath LIST_OF_UPDATES_LOCAL_FILENAME, 20)) {
|
||||||
std::ifstream in(gTmpPath LIST_OF_UPDATES_LOCAL_FILENAME);
|
std::ifstream in(gTmpPath LIST_OF_UPDATES_LOCAL_FILENAME);
|
||||||
while (in >> url >> version >> md5 >> std::ws) {
|
while (in >> url >> version >> md5 >> std::ws) {
|
||||||
|
std::getline(in, name);
|
||||||
CFlashVersionInfo versionInfo(version);
|
CFlashVersionInfo versionInfo(version);
|
||||||
newVer = versionInfo.getVersion();
|
newVer = versionInfo.getVersion();
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
@@ -988,7 +989,7 @@ void CFlashExpertSetup::readMTDPart(int mtd, const std::string &fileName)
|
|||||||
sync();
|
sync();
|
||||||
}
|
}
|
||||||
|
|
||||||
//#define UBOOT_BIN
|
#define UBOOT_BIN
|
||||||
//#define SPARE_BIN
|
//#define SPARE_BIN
|
||||||
|
|
||||||
int CFlashExpertSetup::exec(CMenuTarget* parent, const std::string &actionKey)
|
int CFlashExpertSetup::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||||
|
Reference in New Issue
Block a user