Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Side by Side Diff: pym/_emerge/Dependency.py

Issue 6905107: Rebuild when build-time/run-time deps are upgraded. (Closed) Base URL: git://git.overlays.gentoo.org/proj/portage.git@master
Patch Set: Address review feedback, add tests. Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pym/_emerge/DepPrioritySatisfiedRange.py ('k') | pym/_emerge/UnmergeDepPriority.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 1999-2009 Gentoo Foundation 1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2 2 # Distributed under the terms of the GNU General Public License v2
3 3
4 from _emerge.DepPriority import DepPriority 4 from _emerge.DepPriority import DepPriority
5 from _emerge.SlotObject import SlotObject 5 from _emerge.SlotObject import SlotObject
6 class Dependency(SlotObject): 6 class Dependency(SlotObject):
7 __slots__ = ("atom", "blocker", "child", "depth", 7 __slots__ = ("atom", "blocker", "child", "depth",
8 » » "parent", "onlydeps", "priority", "root") 8 » » "parent", "onlydeps", "priority", "root",
9 » » "collapsed_parent", "collapsed_priority")
9 def __init__(self, **kwargs): 10 def __init__(self, **kwargs):
10 SlotObject.__init__(self, **kwargs) 11 SlotObject.__init__(self, **kwargs)
11 if self.priority is None: 12 if self.priority is None:
12 self.priority = DepPriority() 13 self.priority = DepPriority()
13 if self.depth is None: 14 if self.depth is None:
14 self.depth = 0 15 self.depth = 0
16 if self.collapsed_parent is None:
17 self.collapsed_parent = self.parent
18 if self.collapsed_priority is None:
19 self.collapsed_priority = self.priority
15 20
OLDNEW
« no previous file with comments | « pym/_emerge/DepPrioritySatisfiedRange.py ('k') | pym/_emerge/UnmergeDepPriority.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698