remove sırasında comar betikleri de kaldırılsın
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ def registerScript(om, appname, scriptPath):
|
|||||||
cmd = '+' + om + ' ' + appname + ' ' +scriptPath + '\n'
|
cmd = '+' + om + ' ' + appname + ' ' +scriptPath + '\n'
|
||||||
return sendCommand(cmd)
|
return sendCommand(cmd)
|
||||||
|
|
||||||
def removeScript(appname):
|
def removeScripts(appname):
|
||||||
cmd = "-" + appname + '\n'
|
cmd = "-" + appname + '\n'
|
||||||
return sendCommand(cmd)
|
return sendCommand(cmd)
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ from purl import PUrl
|
|||||||
def remove(package_name):
|
def remove(package_name):
|
||||||
"""Remove a goddamn package"""
|
"""Remove a goddamn package"""
|
||||||
from installdb import installdb
|
from installdb import installdb
|
||||||
|
from comariface import removeScripts
|
||||||
|
|
||||||
ui.info('Removing package %s\n' % package_name)
|
ui.info('Removing package %s\n' % package_name)
|
||||||
if not installdb.is_installed(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:
|
for fileinfo in installdb.files(package_name).list:
|
||||||
os.unlink( os.path.join(config.destdir, fileinfo.path) )
|
os.unlink( os.path.join(config.destdir, fileinfo.path) )
|
||||||
installdb.remove(package_name)
|
installdb.remove(package_name)
|
||||||
|
removeScripts(package_name)
|
||||||
|
|
||||||
def install(pkg_location):
|
def install(pkg_location):
|
||||||
from install import Installer
|
from install import Installer
|
||||||
|
|||||||
Reference in New Issue
Block a user