1 |
Author: zmedico |
2 |
Date: 2008-05-29 05:23:18 +0000 (Thu, 29 May 2008) |
3 |
New Revision: 10476 |
4 |
|
5 |
Modified: |
6 |
main/trunk/pym/portage/dbapi/vartree.py |
7 |
Log: |
8 |
Save the content of CONFIG_MEMORY_FILE in dblink.treewalk() _before_ |
9 |
unmerging other instances, in order to avoid overwritting/undoing |
10 |
the pruning that's done during unmerge. |
11 |
|
12 |
|
13 |
Modified: main/trunk/pym/portage/dbapi/vartree.py |
14 |
=================================================================== |
15 |
--- main/trunk/pym/portage/dbapi/vartree.py 2008-05-29 04:56:18 UTC (rev 10475) |
16 |
+++ main/trunk/pym/portage/dbapi/vartree.py 2008-05-29 05:23:18 UTC (rev 10476) |
17 |
@@ -2323,6 +2323,12 @@ |
18 |
outfile.flush() |
19 |
outfile.close() |
20 |
|
21 |
+ # write out our collection of md5sums |
22 |
+ cfgfiledict.pop("IGNORE", None) |
23 |
+ ensure_dirs(os.path.dirname(conf_mem_file), |
24 |
+ gid=portage_gid, mode=02750, mask=02) |
25 |
+ writedict(cfgfiledict, conf_mem_file) |
26 |
+ |
27 |
# These caches are populated during collision-protect and the data |
28 |
# they contain is now invalid. It's very important to invalidate |
29 |
# the contents_inodes cache so that FEATURES=unmerge-orphans |
30 |
@@ -2410,16 +2416,6 @@ |
31 |
self.vartree.dbapi.cpcache.pop(self.mysplit[0], None) |
32 |
contents = self.getcontents() |
33 |
|
34 |
- #write out our collection of md5sums |
35 |
- if cfgfiledict.has_key("IGNORE"): |
36 |
- del cfgfiledict["IGNORE"] |
37 |
- |
38 |
- my_private_path = os.path.join(destroot, PRIVATE_PATH) |
39 |
- ensure_dirs(my_private_path, gid=portage_gid, mode=02750, mask=02) |
40 |
- |
41 |
- writedict(cfgfiledict, conf_mem_file) |
42 |
- del conf_mem_file |
43 |
- |
44 |
# regenerate reverse NEEDED map |
45 |
self.vartree.dbapi.linkmap.rebuild() |
46 |
|
47 |
|
48 |
-- |
49 |
gentoo-commits@l.g.o mailing list |