From 90e3e34633d78866dbf30e8cb4133f7cb1fb7390 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Fri, 1 Jan 2016 19:30:58 +0100 Subject: [PATCH] opkg_manager: disarm checkSize() function Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/609a591d9c06bfe287b30046acbc551fbae4ad75 Author: Stefan Seyfried Date: 2016-01-01 (Fri, 01 Jan 2016) --- src/gui/opkg_manager.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gui/opkg_manager.cpp b/src/gui/opkg_manager.cpp index 56933ead1..06bccf6a8 100644 --- a/src/gui/opkg_manager.cpp +++ b/src/gui/opkg_manager.cpp @@ -249,6 +249,13 @@ bool COPKGManager::checkSize(const string& pkg_name) if (isInstalled(plain_pkg)) return true; + /* this is pretty broken right now for several reasons: + * space in /tmp is limited (/tmp being ramfs usually, but wasted + by unpacking the archive and then untaring it instead of using a pipe + * the file is downloaded for this test, then discarded and later + downloaded again for installation + so until a better solution is found, simply disable it. */ +#if 0 //get available root fs size //TODO: Check writability! struct statfs root_fs; @@ -303,6 +310,7 @@ bool COPKGManager::checkSize(const string& pkg_name) dprintf(DEBUG_NORMAL, "[COPKGManager] [%s - %d] WARNING: size check freesize=%" PRId64 " (recommended: %" PRId64 ")\n", __func__, __LINE__, free_size, req_size); return false; } +#endif return true; }