mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
opkg-manager: add clean command
This commit is contained in:
@@ -102,6 +102,7 @@ enum
|
|||||||
OM_STATUS,
|
OM_STATUS,
|
||||||
OM_CONFIGURE,
|
OM_CONFIGURE,
|
||||||
OM_DOWNLOAD,
|
OM_DOWNLOAD,
|
||||||
|
OM_CLEAN,
|
||||||
OM_MAX
|
OM_MAX
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -117,7 +118,8 @@ static string pkg_types[OM_MAX] =
|
|||||||
OPKG_CL OPKG_CL_CONFIG_OPTIONS " install ",
|
OPKG_CL OPKG_CL_CONFIG_OPTIONS " install ",
|
||||||
OPKG_CL " status ",
|
OPKG_CL " status ",
|
||||||
OPKG_CL " configure ",
|
OPKG_CL " configure ",
|
||||||
OPKG_CL " download "
|
OPKG_CL " download ",
|
||||||
|
OPKG_CL " clean "
|
||||||
};
|
};
|
||||||
|
|
||||||
COPKGManager::COPKGManager(): opkg_conf('\t')
|
COPKGManager::COPKGManager(): opkg_conf('\t')
|
||||||
@@ -153,6 +155,7 @@ void COPKGManager::init()
|
|||||||
COPKGManager::~COPKGManager()
|
COPKGManager::~COPKGManager()
|
||||||
{
|
{
|
||||||
pkg_map.clear();
|
pkg_map.clear();
|
||||||
|
execCmd(pkg_types[OM_CLEAN], CShellWindow::QUIET);
|
||||||
CFileHelpers::removeDir(OPKG_TMP_DIR);
|
CFileHelpers::removeDir(OPKG_TMP_DIR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user