From fbb92e0b747458cdc2d1932d590308d95de36e12 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Thu, 26 Nov 2020 16:17:08 +0100 Subject: [PATCH] opkg-manager: add clean command --- src/gui/opkg_manager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/opkg_manager.cpp b/src/gui/opkg_manager.cpp index 65ca38a89..91bd9a14f 100644 --- a/src/gui/opkg_manager.cpp +++ b/src/gui/opkg_manager.cpp @@ -102,6 +102,7 @@ enum OM_STATUS, OM_CONFIGURE, OM_DOWNLOAD, + OM_CLEAN, OM_MAX }; @@ -117,7 +118,8 @@ static string pkg_types[OM_MAX] = OPKG_CL OPKG_CL_CONFIG_OPTIONS " install ", OPKG_CL " status ", OPKG_CL " configure ", - OPKG_CL " download " + OPKG_CL " download ", + OPKG_CL " clean " }; COPKGManager::COPKGManager(): opkg_conf('\t') @@ -153,6 +155,7 @@ void COPKGManager::init() COPKGManager::~COPKGManager() { pkg_map.clear(); + execCmd(pkg_types[OM_CLEAN], CShellWindow::QUIET); CFileHelpers::removeDir(OPKG_TMP_DIR); }