remove çalışsın.
This commit is contained in:
+3
-3
@@ -12,10 +12,10 @@ from os.path import join
|
||||
|
||||
def remove(package_name):
|
||||
"""Remove a goddamn package"""
|
||||
ui.info('Removing package ' + package_name)
|
||||
ui.info('Removing package %s\n' % package_name)
|
||||
if not installdb.is_installed(package_name):
|
||||
raise InstallError('Trying to remove nonexistent package '
|
||||
+ package_name)
|
||||
raise Exception('Trying to remove nonexistent package '
|
||||
+ package_name)
|
||||
for fileinfo in installdb.files(package_name).list:
|
||||
os.unlink( join(config.destdir, fileinfo.path) )
|
||||
installdb.remove(package_name)
|
||||
|
||||
Reference in New Issue
Block a user