Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r9607 - main/trunk/pym/_emerge
Date: Sun, 30 Mar 2008 00:19:34
Message-Id: E1JflGk-0002xU-Mu@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-03-30 00:19:29 +0000 (Sun, 30 Mar 2008)
3 New Revision: 9607
4
5 Modified:
6 main/trunk/pym/_emerge/__init__.py
7 Log:
8 Bug #215308 - Simplify the greedy atoms logic so that it behaves more
9 like StaticFileSet and won't pull in lower slots.
10
11
12 Modified: main/trunk/pym/_emerge/__init__.py
13 ===================================================================
14 --- main/trunk/pym/_emerge/__init__.py 2008-03-29 22:47:54 UTC (rev 9606)
15 +++ main/trunk/pym/_emerge/__init__.py 2008-03-30 00:19:29 UTC (rev 9607)
16 @@ -1985,29 +1985,12 @@
17 myslots = set()
18 for cpv in vardb.match(mykey):
19 myslots.add(vardb.aux_get(cpv, ["SLOT"])[0])
20 - if myslots:
21 - self._populate_filtered_repo(root, atom,
22 - exclude_installed=True)
23 - mymatches = filtered_db.match(atom)
24 - best_pkg = portage.best(mymatches)
25 - if best_pkg:
26 - best_slot = filtered_db.aux_get(best_pkg, ["SLOT"])[0]
27 - myslots.add(best_slot)
28 - if len(myslots) > 1:
29 - for myslot in myslots:
30 - myslot_atom = "%s:%s" % (mykey, myslot)
31 - self._populate_filtered_repo(
32 - root, myslot_atom,
33 - exclude_installed=True)
34 - if filtered_db.match(myslot_atom):
35 - yield myslot_atom
36 + for myslot in myslots:
37 + yield "%s:%s" % (mykey, myslot)
38 + # In addition to any installed slots, also try to pull
39 + # in the latest new slot that may be available.
40 + yield atom
41
42 - # Since populate_filtered_repo() was called with the
43 - # exclude_installed flag, these atoms will need to be processed
44 - # again in case installed packages are required to satisfy
45 - # dependencies.
46 - self._filtered_trees[root]["atoms"].clear()
47 -
48 def _iter_args_for_pkg(self, pkg):
49 # TODO: add multiple $ROOT support
50 if pkg.root != self.target_root:
51
52 --
53 gentoo-commits@l.g.o mailing list