mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
opkg_manager: disarm checkSize() function
This commit is contained in:
@@ -249,6 +249,13 @@ bool COPKGManager::checkSize(const string& pkg_name)
|
|||||||
if (isInstalled(plain_pkg))
|
if (isInstalled(plain_pkg))
|
||||||
return true;
|
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
|
//get available root fs size
|
||||||
//TODO: Check writability!
|
//TODO: Check writability!
|
||||||
struct statfs root_fs;
|
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);
|
dprintf(DEBUG_NORMAL, "[COPKGManager] [%s - %d] WARNING: size check freesize=%" PRId64 " (recommended: %" PRId64 ")\n", __func__, __LINE__, free_size, req_size);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user