Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r10239 - main/trunk/pym/_emerge
Date: Thu, 08 May 2008 18:35:44
Message-Id: E1JuAxw-0003Zi-VN@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-05-08 18:35:39 +0000 (Thu, 08 May 2008)
3 New Revision: 10239
4
5 Modified:
6 main/trunk/pym/_emerge/__init__.py
7 Log:
8 Don't save "uninstall" tasks in the resume list since they'll be regenerated
9 by dependency calculations upon resume.
10
11
12 Modified: main/trunk/pym/_emerge/__init__.py
13 ===================================================================
14 --- main/trunk/pym/_emerge/__init__.py 2008-05-08 17:40:20 UTC (rev 10238)
15 +++ main/trunk/pym/_emerge/__init__.py 2008-05-08 18:35:39 UTC (rev 10239)
16 @@ -5058,7 +5058,7 @@
17 pkg_type, myroot, pkg_key, action = x
18 if pkg_type not in self.pkg_tree_map:
19 continue
20 - if action not in ("merge", "uninstall"):
21 + if action != "merge":
22 continue
23 mydb = trees[myroot][self.pkg_tree_map[pkg_type]].dbapi
24 try:
25 @@ -5615,7 +5615,7 @@
26 world_set = root_config.sets["world"]
27
28 mtimedb["resume"]["mergelist"] = [list(x) for x in mylist \
29 - if isinstance(x, Package)]
30 + if isinstance(x, Package) and x.operation == "merge"]
31 mtimedb.commit()
32
33 mymergelist = mylist
34 @@ -5705,8 +5705,6 @@
35 if not (buildpkgonly or fetchonly or pretend):
36 unmerge(root_config, self.myopts, "unmerge",
37 [pkg.cpv], mtimedb["ldpath"], clean_world=0)
38 - del mtimedb["resume"]["mergelist"][0]
39 - mtimedb.commit()
40 continue
41
42 if x[0]=="blocks":
43
44 --
45 gentoo-commits@l.g.o mailing list