entropy.client.interfaces.trigger: remove cleanpy trigger, not needed

This commit is contained in:
Fabio Erculiani
2009-05-23 20:33:18 +02:00
parent 872481f387
commit 4e90a4d9d9
@@ -193,8 +193,6 @@ class Trigger:
functions.append('removebootablekernel')
if x.startswith('/etc/init.d/') and ("initdisable" not in functions):
functions.append('initdisable')
if x.endswith('.py') and ("cleanpy" not in functions):
functions.append('cleanpy')
if x.startswith('/etc/env.d/') and ("env_update" not in functions):
functions.append('env_update')
if (os.path.dirname(x) in ldpaths) and ("run_ldconfig" not in functions):
@@ -788,17 +786,6 @@ class Trigger:
)
break
def trigger_cleanpy(self):
pyfiles = [x for x in self.pkgdata['content'] if x.endswith(".py")]
for item in pyfiles:
item = etpConst['systemroot']+item
if os.path.isfile(item+"o"):
try: os.remove(item+"o")
except OSError: pass
if os.path.isfile(item+"c"):
try: os.remove(item+"c")
except OSError: pass
def trigger_createkernelsym(self):
for item in self.pkgdata['content']:
item = etpConst['systemroot']+item