mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user