diff options
-rw-r--r-- | CHANGES | 3 | ||||
-rw-r--r-- | layman/overlays/overlay.py | 4 |
2 files changed, 5 insertions, 2 deletions
@@ -14,6 +14,9 @@ Version TODO - Drop support for broken tar overlays with missing category level (and missing profiles/repo_name as a consequence) + - Make missing overlay directory not fail removal of that overlay + from the local list + Version 1.2.5 - Released 2010/01/04 =================================== diff --git a/layman/overlays/overlay.py b/layman/overlays/overlay.py index e613ec2..64ef419 100644 --- a/layman/overlays/overlay.py +++ b/layman/overlays/overlay.py @@ -217,8 +217,8 @@ class Overlay(object): mdir = path([base, self.name]) if not os.path.exists(mdir): - raise Exception('Directory ' + mdir + ' does not exist. Cannot remo' - 've the overlay!') + OUT.warn('Directory ' + mdir + ' did not exist, no files deleted.') + return shutil.rmtree(mdir) |