Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r10143 - main/trunk/pym/_emerge
Date: Sat, 03 May 2008 21:57:19
Message-Id: E1JsPjI-0004qH-QA@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-05-03 21:57:15 +0000 (Sat, 03 May 2008)
3 New Revision: 10143
4
5 Modified:
6 main/trunk/pym/_emerge/__init__.py
7 Log:
8 When a --resume list is rejected due to unsatisfied deps, display a
9 list of missing deps and which packages they belong to.
10
11
12 Modified: main/trunk/pym/_emerge/__init__.py
13 ===================================================================
14 --- main/trunk/pym/_emerge/__init__.py 2008-05-03 21:23:40 UTC (rev 10142)
15 +++ main/trunk/pym/_emerge/__init__.py 2008-05-03 21:57:15 UTC (rev 10143)
16 @@ -4839,7 +4839,7 @@
17 # resume list invalid, so convert it to a
18 # UnsatisfiedResumeDep exception.
19 raise self.UnsatisfiedResumeDep(
20 - self._unsatisfied_deps[0].atom)
21 + self._unsatisfied_deps)
22 self._serialized_tasks_cache = None
23 try:
24 self.altlist()
25 @@ -7779,9 +7779,14 @@
26 out = EOutput()
27
28 if isinstance(e, mydepgraph.UnsatisfiedResumeDep):
29 - out.eerror("An expected dependency " + \
30 - "is not installed: %s" % str(e))
31 + out.eerror("One or more expected dependencies " + \
32 + "are not installed:")
33 out.eerror("")
34 + indent = " "
35 + for dep in e.value:
36 + out.eerror(indent + str(dep.atom) + " pulled in by:")
37 + out.eerror(2 * indent + str(dep.parent))
38 + out.eerror("")
39 msg = "The resume list contains packages " + \
40 "with dependencies that have not been " + \
41 "installed yet. Please restart/continue " + \
42
43 --
44 gentoo-commits@l.g.o mailing list