remove sırasında comar betikleri de kaldırılsın

This commit is contained in:
Barış Metin
2005-07-18 19:46:52 +00:00
parent 7f10cf682d
commit 14b406aaad
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ def registerScript(om, appname, scriptPath):
cmd = '+' + om + ' ' + appname + ' ' +scriptPath + '\n'
return sendCommand(cmd)
def removeScript(appname):
def removeScripts(appname):
cmd = "-" + appname + '\n'
return sendCommand(cmd)
+2
View File
@@ -10,6 +10,7 @@ from purl import PUrl
def remove(package_name):
"""Remove a goddamn package"""
from installdb import installdb
from comariface import removeScripts
ui.info('Removing package %s\n' % package_name)
if not installdb.is_installed(package_name):
@@ -18,6 +19,7 @@ def remove(package_name):
for fileinfo in installdb.files(package_name).list:
os.unlink( os.path.join(config.destdir, fileinfo.path) )
installdb.remove(package_name)
removeScripts(package_name)
def install(pkg_location):
from install import Installer