COPKGManager: exit check size if package already installed

Old files will be remove during installation, so it should
be enough size.
This commit is contained in:
2015-02-08 00:57:49 +01:00
parent 54d3ad261c
commit 337cc097c8

View File

@@ -224,6 +224,10 @@ bool COPKGManager::checkSize(const string& pkg_name)
string pkg_file = pkg_name; string pkg_file = pkg_name;
string plain_pkg = getBaseName(pkg_file); 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 //get available root fs size
//TODO: Check writability! //TODO: Check writability!
struct statfs root_fs; struct statfs root_fs;