- fixed a lot of memory leaks

- updated some functions inside triggerTools
- improved speed of content table by indexing the content
- added --resume support for remove,install,world tools 
- removed memory hog contentCache (set())
- some misc fixes

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@728 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
(no author)
2007-11-19 04:07:28 +00:00
parent 1d230629b1
commit 3a643f70d8
9 changed files with 830 additions and 703 deletions
+3 -3
View File
@@ -125,7 +125,7 @@ def postinstall(pkgdata):
functions.add('createkernelsym')
for path in ldpaths:
if x.startswith(path) and (x.find(".so") != -1):
functions.add('ldconfig')
functions.add('run_ldconfig')
#if x.startswith("/etc/init.d/"): do it externally
# functions.add('initadd')
@@ -213,7 +213,7 @@ def postremove(pkgdata):
functions.add('cleanpy')
for path in ldpaths:
if x.startswith(path) and (x.find(".so") != -1):
functions.add('ldconfig')
functions.add('run_ldconfig')
return functions
@@ -531,7 +531,7 @@ def createkernelsym(pkgdata):
os.symlink(todir,"/usr/src/linux")
break
def ldconfig(pkgdata):
def run_ldconfig(pkgdata):
equoLog.log(ETP_LOGPRI_INFO,ETP_LOGLEVEL_NORMAL,"[POST] Running ldconfig")
print_info(red(" ##")+brown(" Regenerating /etc/ld.so.cache"))
os.system("ldconfig &> /dev/null")