Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r10119 - main/trunk/pym/_emerge
Date: Sat, 03 May 2008 02:55:20
Message-Id: E1Js7u9-000224-Tb@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-05-03 02:55:16 +0000 (Sat, 03 May 2008)
3 New Revision: 10119
4
5 Modified:
6 main/trunk/pym/_emerge/__init__.py
7 Log:
8 Fix depgraph.loadResumeCommand() to identify an unsatisfied dependency
9 and invalidate the resume list in that case.
10
11
12 Modified: main/trunk/pym/_emerge/__init__.py
13 ===================================================================
14 --- main/trunk/pym/_emerge/__init__.py 2008-05-03 02:31:39 UTC (rev 10118)
15 +++ main/trunk/pym/_emerge/__init__.py 2008-05-03 02:55:16 UTC (rev 10119)
16 @@ -4796,8 +4796,19 @@
17 if isinstance(task, Package) and \
18 task.operation == "merge":
19 self._add_pkg(task, None)
20 - if not self._create_graph():
21 +
22 + # Allow unsatisfied deps here to avoid showing a masking
23 + # message for an unsatisfied dep that isn't necessarily
24 + # masked.
25 + if not self._create_graph(allow_unsatisfied=True):
26 return False
27 + if self._unsatisfied_deps:
28 + # This probably means that a required package
29 + # was dropped via --skipfirst. It makes the
30 + # resume list invalid, so convert it to a
31 + # PackageNotFound exception.
32 + raise portage.exception.PackageNotFound(
33 + self._unsatisfied_deps[0].atom)
34 self._serialized_tasks_cache = None
35 try:
36 self.altlist()
37 @@ -7665,10 +7676,10 @@
38 out.eerror("Error: The resume list contains packages that are no longer")
39 out.eerror(" available to be emerged. Please restart/continue")
40 out.eerror(" the merge operation manually.")
41 + else:
42 + if show_spinner:
43 + print "\b\b... done!"
44
45 - if show_spinner:
46 - print "\b\b... done!"
47 -
48 unsatisfied_block = False
49 if success:
50 mymergelist = mydepgraph.altlist()
51
52 --
53 gentoo-commits@l.g.o mailing list