1 |
Author: zmedico |
2 |
Date: 2008-03-30 21:40:42 +0000 (Sun, 30 Mar 2008) |
3 |
New Revision: 9636 |
4 |
|
5 |
Modified: |
6 |
main/trunk/pym/_emerge/__init__.py |
7 |
Log: |
8 |
Make sure the all resume lists are deleted when a stale one is encountered. |
9 |
|
10 |
|
11 |
Modified: main/trunk/pym/_emerge/__init__.py |
12 |
=================================================================== |
13 |
--- main/trunk/pym/_emerge/__init__.py 2008-03-30 19:51:53 UTC (rev 9635) |
14 |
+++ main/trunk/pym/_emerge/__init__.py 2008-03-30 21:40:42 UTC (rev 9636) |
15 |
@@ -6885,7 +6885,11 @@ |
16 |
out.eerror("Error: The resume list contains packages that are no longer") |
17 |
out.eerror(" available to be emerged. Please restart/continue") |
18 |
out.eerror(" the merge operation manually.") |
19 |
- del mtimedb["resume"] |
20 |
+ |
21 |
+ # delete the current list and also the backup |
22 |
+ # since it's probably stale too. |
23 |
+ for k in ("resume", "resume_backup"): |
24 |
+ mtimedb.pop(k, None) |
25 |
mtimedb.commit() |
26 |
return 1 |
27 |
if show_spinner: |
28 |
|
29 |
-- |
30 |
gentoo-commits@l.g.o mailing list |