From: Zac Medico Date: Tue, 2 Mar 2010 05:45:48 +0000 (-0000) Subject: Bug #306659 - For --rebuilt-binaries, only reinstall if binary package X-Git-Tag: v2.2_rc64~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=398c490c16b548cacb62c25e12a9fe7a4106c720;p=portage.git Bug #306659 - For --rebuilt-binaries, 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. svn path=/main/trunk/; revision=15513 --- 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: