From 8eacdd6e0986d585601daede5d1e02de5d26e855 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 a3762416af63bb3a7934c7c6e67d2d5fb87629e2 --- 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);