From 4e90a4d9d9fe981636cd66c5c1c10de1e8bc4b03 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sat, 23 May 2009 20:33:18 +0200 Subject: [PATCH] entropy.client.interfaces.trigger: remove cleanpy trigger, not needed --- libraries/entropy/client/interfaces/trigger.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/libraries/entropy/client/interfaces/trigger.py b/libraries/entropy/client/interfaces/trigger.py index 1d4f28251..5e9522e0c 100644 --- a/libraries/entropy/client/interfaces/trigger.py +++ b/libraries/entropy/client/interfaces/trigger.py @@ -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