Make RebuiltBinaries only select binary packages with non-empty BUILD_TIME.
authorZac Medico <zmedico@gentoo.org>
Fri, 2 Apr 2010 16:22:02 +0000 (09:22 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 2 Apr 2010 16:22:02 +0000 (09:22 -0700)
pym/portage/sets/dbapi.py

index 5bd7e1688dbbd29ffaab6cd589f61fef3e639215..2ba7b6c806783087cb8a34b17079fa501747cadc 100644 (file)
@@ -328,7 +328,7 @@ class RebuiltBinaries(EverythingSet):
                        bin_build_time, = self._bindb.aux_get(cpv, self._aux_keys)
                except KeyError:
                        return False
-               return inst_build_time != bin_build_time
+               return bool(bin_build_time and (inst_build_time != bin_build_time))
 
        def singleBuilder(cls, options, settings, trees):
                return RebuiltBinaries(trees["vartree"].dbapi,