From 337cc097c83cda927beeebc1c1f3bfc3a71b78fe Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 8 Feb 2015 00:57:49 +0100 Subject: [PATCH] COPKGManager: exit check size if package already installed Old files will be remove during installation, so it should be enough size. --- src/gui/opkg_manager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/opkg_manager.cpp b/src/gui/opkg_manager.cpp index 6c14fb507..ea56edfc3 100644 --- a/src/gui/opkg_manager.cpp +++ b/src/gui/opkg_manager.cpp @@ -224,6 +224,10 @@ bool COPKGManager::checkSize(const string& pkg_name) string pkg_file = pkg_name; string plain_pkg = getBaseName(pkg_file); + //exit check size if package already installed, because of auto remove of old stuff during installation + if (isInstalled(plain_pkg)) + return true; + //get available root fs size //TODO: Check writability! struct statfs root_fs;