From 228b1080fa95cd5c325466cf44094734707c9439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6k=C3=A7en=20Eraslan?= Date: Fri, 12 Feb 2010 09:48:08 +0000 Subject: [PATCH] Replace FileError with ctx.ui.error since FileError is defined in pisitoolsfunctions. --- ChangeLog | 4 ++++ pisi/actionsapi/shelltools.py | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dba61660..ac333d58 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-02-12 Gökçen Eraslan + * pisi/actionsapi/shelltools.py: Replace FileError with ctx.ui.error + since FileError is defined in pisitoolsfunctions. + 2010-02-05 Fatih Aşıcı * pisi/version.py (compare): Allow comparing Version objects with strings. diff --git a/pisi/actionsapi/shelltools.py b/pisi/actionsapi/shelltools.py index 04911434..f32fedb3 100644 --- a/pisi/actionsapi/shelltools.py +++ b/pisi/actionsapi/shelltools.py @@ -94,7 +94,9 @@ def unlink(pattern): '''remove the file path''' filePathGlob = glob.glob(pattern) if len(filePathGlob) == 0: - raise FileError(_("No file matched pattern \"%s\". Remove operation failed.") % pattern) + ctx.ui.error(_("No file matched pattern \"%s\". Remove operation failed.") % pattern) + return + for filePath in filePathGlob: if isFile(filePath) or isLink(filePath): try: