summaryrefslogtreecommitdiffstats
path: root/pym/portage/dbapi/bintree.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-06-04 10:27:46 -0700
committerZac Medico <zmedico@gentoo.org>2010-06-04 10:27:46 -0700
commit742c950219ac8796e324b8d3d31235e69661dbad (patch)
treeb61e8153497fce82ea47b49b56a99fb919a52a7f /pym/portage/dbapi/bintree.py
parent1745705cd58c380e0f213d572777fe841a1e0f41 (diff)
downloadportage-742c950219ac8796e324b8d3d31235e69661dbad.tar.gz
portage-742c950219ac8796e324b8d3d31235e69661dbad.tar.bz2
portage-742c950219ac8796e324b8d3d31235e69661dbad.zip
Fix code from previous commit to handle missing BUILD_TIME better.
Diffstat (limited to 'pym/portage/dbapi/bintree.py')
-rw-r--r--pym/portage/dbapi/bintree.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py
index d5e2feaf7..680a6395a 100644
--- a/pym/portage/dbapi/bintree.py
+++ b/pym/portage/dbapi/bintree.py
@@ -791,16 +791,16 @@ class binarytree(object):
btime = int(btime)
except ValueError:
btime = None
- if btime:
- other_d = remotepkgs.get(cpv)
- if other_d is not None:
- other_btime = other_d.get('BUILD_TIME', '')
- try:
- other_btime = int(other_btime)
- except ValueError:
- other_btime = None
- if other_btime and other_btime > btime:
- continue
+
+ other_d = remotepkgs.get(cpv)
+ if other_d is not None:
+ other_btime = other_d.get('BUILD_TIME', '')
+ try:
+ other_btime = int(other_btime)
+ except ValueError:
+ other_btime = None
+ if other_btime and (not btime or other_btime > btime):
+ continue
remotepkgs[cpv] = d