From 4811457c0f73d8dd1d48d2faea6f1fde28769413 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Mon, 24 Oct 2005 13:27:53 +0000 Subject: [PATCH] * give a warning on broken symlinks, otherwise err. solves #586 --- pisi/util.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pisi/util.py b/pisi/util.py index f9b4dfa5..0e68a8a5 100644 --- a/pisi/util.py +++ b/pisi/util.py @@ -279,7 +279,11 @@ def get_file_hashes(top, exclude_prefix=None, removePrefix=None): try: return func(f) - except FileError: + except FileError, e: + if os.path.issymlink(f): + ctx.ui.warning(_('Ignoring "external" link %s') % f) + else: + raise e return None # also handle single files