summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/_emerge/depgraph.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index 65144187b..811e6f522 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -2640,8 +2640,13 @@ class depgraph(object):
elif pkg.built:
built_pkg = pkg
if built_pkg is not None and inst_pkg is not None:
- if built_pkg.metadata['BUILD_TIME'] != \
- inst_pkg.metadata['BUILD_TIME']:
+ # Only reinstall if binary package BUILD_TIME is
+ # non-empty, in order to avoid cases like to
+ # bug #306659 where BUILD_TIME fields are missing
+ # in local and/or remote Packages file.
+ if built_pkg.metadata['BUILD_TIME'] and \
+ (built_pkg.metadata['BUILD_TIME'] != \
+ inst_pkg.metadata['BUILD_TIME']):
return built_pkg, built_pkg
if avoid_update: