Skip to content

Commit

Permalink
added revoke cachefile to systemcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
DonDavici committed Mar 14, 2015
1 parent a63b0ed commit a12d86e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/DP_SystemCheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit a12d86e

Please sign in to comment.