COPKGManager: use installPackage() for install from package list too

installPackage() has also a new parameter for options,
in this case is --force-reinstall in use.
This commit is contained in:
2015-01-31 21:55:01 +01:00
parent 55a027efbf
commit 14d21fdeec
2 changed files with 17 additions and 22 deletions

View File

@@ -109,7 +109,7 @@ class COPKGManager : public CMenuTarget
int exec(CMenuTarget* parent, const std::string & actionKey);
static bool hasOpkgSupport();
bool checkUpdates(const std::string & package_name = std::string(), bool show_progress = true);
bool installPackage(const std::string& pkg_name);
bool installPackage(const std::string& pkg_name, std::string options = std::string());
bool checkSize(const std::string& pkg_name);
};
#endif