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: