]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Fix alice bob test
authorDavid Stainton <dstainton415@gmail.com>
Wed, 29 Jul 2015 00:46:46 +0000 (17:46 -0700)
committerDaira Hopwood <daira@jacaranda.org>
Thu, 1 Oct 2015 00:19:46 +0000 (01:19 +0100)
src/allmydata/frontends/magic_folder.py

index 000b5dd976e0450a40cc668ba9f79a5fc2768b28..2dc9518bde2397868de4081225d52ecef96a637a 100644 (file)
@@ -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(),)