From dda0b2ce4f021f4a8f4b84e725c3bc1e7da190c6 Mon Sep 17 00:00:00 2001 From: David Stainton Date: Tue, 28 Jul 2015 17:46:46 -0700 Subject: [PATCH] Fix alice bob test --- src/allmydata/frontends/magic_folder.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py index 000b5dd9..2dc9518b 100644 --- a/src/allmydata/frontends/magic_folder.py +++ b/src/allmydata/frontends/magic_folder.py @@ -471,10 +471,10 @@ class Downloader(QueueMixin): print "name ", name file_node, metadata = listing_map[name] local_version = self._get_local_latest(name) # XXX we might need to convert first? - if local_version is None: - return None - if local_version >= metadata['version']: - return None + if local_version is not None: + if local_version >= metadata['version']: + print "local_version >= metadata['version']" + return None else: print "local_version %r" % (local_version,) print "ALL KEYS %s" % (self._download_scan_batch.keys(),) -- 2.45.2