diff --git a/src/DP_SystemCheck.py b/src/DP_SystemCheck.py index 30292bca..05b1c901 100644 --- a/src/DP_SystemCheck.py +++ b/src/DP_SystemCheck.py @@ -38,7 +38,7 @@ from Screens.Screen import Screen from Screens.Console import Console as SConsole -from __common__ import printl2 as printl, testInetConnectivity, getUserAgentHeader, getBoxArch, getOeVersion +from __common__ import printl2 as printl, testInetConnectivity, getUserAgentHeader, getBoxArch, getOeVersion, revokeCacheFiles from __init__ import getVersion, _ # _ is translation @@ -87,6 +87,8 @@ def __init__(self, session): if config.plugins.dreamplex.showUpdateFunction.value: vlist.append((_("Check for update."), "check_Update")) + vlist.append((_("Revoke cache files manually"), "revoke_cache")) + self["header"] = Label() self["content"] = MenuList(vlist) @@ -119,6 +121,9 @@ def startSelection(self): if content == "check_Update": self.checkForUpdate() + elif content == "revoke_cache": + revokeCacheFiles() + self.session.openWithCallback(self.close, MessageBox,_("Cache files successfully deleted."), MessageBox.TYPE_INFO) else: self.package = content