From f6b3f1a04621ec7d9262a30fb5d3174c32cd4d77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Wed, 21 Dec 2005 17:14:44 +0000 Subject: [PATCH] * a silly comment --- pisi/atomicoperations.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pisi/atomicoperations.py b/pisi/atomicoperations.py index 1229e68a..439b2962 100644 --- a/pisi/atomicoperations.py +++ b/pisi/atomicoperations.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# -*- coding: utf-8 -*- # # Copyright (C) 2005, TUBITAK/UEKAE # @@ -326,10 +327,12 @@ class Remove(AtomicOperation): self.package = packagedb.get_package(self.package_name) try: self.files = ctx.installdb.files(self.package_name) - except: + except pisi.Error, e: # 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() - + def run(self): """Remove a single package""" inst_packagedb = packagedb.inst_packagedb @@ -393,10 +396,10 @@ class Remove(AtomicOperation): # TODO: store this somewhere pass + @staticmethod def remove_pisi_files(path): + #TODO: what does this have to do with pisi files?? util.clean_dir(path) - - remove_pisi_files = staticmethod(remove_pisi_files) def remove_db(self, txn): ctx.installdb.remove(self.package_name, txn)