summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--layman/db.py7
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 526cd8d..4cedfc7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-11-14 Gunnar Wrobel <p@rdus.de>
+
+ * layman/db.py (DB.add): Do not remove directories if adding an
+ overlay failed (#236945)
+ http://bugs.gentoo.org/show_bug.cgi?id=236945
+
2008-06-02 Gunnar Wrobel <p@rdus.de>
* ebuild/layman-1.2.0.ebuild: Ebuild for 1.2.0
diff --git a/layman/db.py b/layman/db.py
index 5019dfb..edb8ac0 100644
--- a/layman/db.py
+++ b/layman/db.py
@@ -115,8 +115,11 @@ class DB(Overlays):
make_conf = MakeConf(self.config, self.overlays)
make_conf.add(overlay)
else:
- overlay.delete(self.config['storage'])
- raise Exception('Adding the overlay failed!')
+ raise Exception('Adding the overlay failed! Possible remains of'
+ ' the opration have NOT been removed and may be'
+ ' left at ' + path([self.config['storage'],
+ overlay.name]) + '. Please re'
+ 'move them manually if required.')
else:
raise Exception('Overlay "' + overlay.name + '" already in the loca'
'l list!')