1 |
Author: zmedico |
2 |
Date: 2008-05-03 21:22:20 +0000 (Sat, 03 May 2008) |
3 |
New Revision: 10141 |
4 |
|
5 |
Modified: |
6 |
main/trunk/pym/_emerge/__init__.py |
7 |
Log: |
8 |
Don't clean out old resume lists when in --ask or --pretend mode. |
9 |
|
10 |
|
11 |
Modified: main/trunk/pym/_emerge/__init__.py |
12 |
=================================================================== |
13 |
--- main/trunk/pym/_emerge/__init__.py 2008-05-03 21:17:05 UTC (rev 10140) |
14 |
+++ main/trunk/pym/_emerge/__init__.py 2008-05-03 21:22:20 UTC (rev 10141) |
15 |
@@ -7804,11 +7804,12 @@ |
16 |
|
17 |
if not success: |
18 |
mydepgraph.display_problems() |
19 |
- # delete the current list and also the backup |
20 |
- # since it's probably stale too. |
21 |
- for k in ("resume", "resume_backup"): |
22 |
- mtimedb.pop(k, None) |
23 |
- mtimedb.commit() |
24 |
+ if not (ask or pretend): |
25 |
+ # delete the current list and also the backup |
26 |
+ # since it's probably stale too. |
27 |
+ for k in ("resume", "resume_backup"): |
28 |
+ mtimedb.pop(k, None) |
29 |
+ mtimedb.commit() |
30 |
|
31 |
return 1 |
32 |
else: |
33 |
|
34 |
-- |
35 |
gentoo-commits@l.g.o mailing list |