From 26ecade694533a4b0f99249af4e55e094917c792 Mon Sep 17 00:00:00 2001 From: Michael Liebmann Date: Tue, 20 Aug 2013 20:48:19 +0200 Subject: [PATCH] Softupdate: Skip checkSize() when update_dir=/tmp on non apollo platform - supplement to 87fef9c895efd4bd342e865012504aed071e59ce Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/8eacdd6e0986d585601daede5d1e02de5d26e855 Author: Michael Liebmann Date: 2013-08-20 (Tue, 20 Aug 2013) --- src/gui/update.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gui/update.cpp b/src/gui/update.cpp index b1920827a..bdfdada28 100644 --- a/src/gui/update.cpp +++ b/src/gui/update.cpp @@ -597,7 +597,12 @@ void CFlashExpert::readmtd(int preadmtd) preadmtd = MTD_OF_WHOLE_IMAGE; } - if (!checkSize(preadmtd, filename)) + bool skipCheck = false; +#ifndef BOXMODEL_APOLLO + if ((std::string)g_settings.update_dir == "/tmp") + skipCheck = true; +#endif + if ((!skipCheck) && (!checkSize(preadmtd, filename))) return; setTitle(LOCALE_FLASHUPDATE_TITLEREADFLASH);