* a silly comment

This commit is contained in:
Eray Özkural
2005-12-21 17:14:44 +00:00
parent 19b4009be9
commit f6b3f1a046
+6 -3
View File
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
# #
# Copyright (C) 2005, TUBITAK/UEKAE # Copyright (C) 2005, TUBITAK/UEKAE
# #
@@ -326,8 +327,10 @@ class Remove(AtomicOperation):
self.package = packagedb.get_package(self.package_name) self.package = packagedb.get_package(self.package_name)
try: try:
self.files = ctx.installdb.files(self.package_name) self.files = ctx.installdb.files(self.package_name)
except: except pisi.Error, e:
# for some reason file was deleted, we still allow removes! # for some reason file was deleted, we still allow removes!
ctx.ui.error(e)
ctx.ui.warning(_('File list could not be read for package %s, continuing removal.') % package_name)
self.files = Files() self.files = Files()
def run(self): def run(self):
@@ -393,11 +396,11 @@ class Remove(AtomicOperation):
# TODO: store this somewhere # TODO: store this somewhere
pass pass
@staticmethod
def remove_pisi_files(path): def remove_pisi_files(path):
#TODO: what does this have to do with pisi files??
util.clean_dir(path) util.clean_dir(path)
remove_pisi_files = staticmethod(remove_pisi_files)
def remove_db(self, txn): def remove_db(self, txn):
ctx.installdb.remove(self.package_name, txn) ctx.installdb.remove(self.package_name, txn)
ctx.filesdb.remove_files(self.files, txn) ctx.filesdb.remove_files(self.files, txn)