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

Unified Diff: pym/_emerge/DepPriority.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, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « man/emerge.1 ('k') | pym/_emerge/DepPriorityNormalRange.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pym/_emerge/DepPriority.py
diff --git a/pym/_emerge/DepPriority.py b/pym/_emerge/DepPriority.py
index f99b7264f5079ade9bcdfd5b8ef0c8b70caa72a2..b08ffe583f2db5092ffb84d7b1f907131ccc0aad 100644
--- a/pym/_emerge/DepPriority.py
+++ b/pym/_emerge/DepPriority.py
@@ -4,7 +4,7 @@
from _emerge.AbstractDepPriority import AbstractDepPriority
class DepPriority(AbstractDepPriority):
- __slots__ = ("satisfied", "optional", "rebuild")
+ __slots__ = ("satisfied", "optional", "rebuild", "ignored")
def __int__(self):
"""
@@ -24,17 +24,19 @@ class DepPriority(AbstractDepPriority):
"""
+ if self.optional:
+ return -3
if self.buildtime:
return 0
if self.runtime:
return -1
if self.runtime_post:
return -2
- if self.optional:
- return -3
return -4
def __str__(self):
+ if self.ignored:
+ return "ignored"
if self.optional:
return "optional"
if self.buildtime:
« no previous file with comments | « man/emerge.1 ('k') | pym/_emerge/DepPriorityNormalRange.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698