projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78b735c
)
simplify _should_download helper method
author
David Stainton
<dstainton415@gmail.com>
Tue, 14 Jul 2015 23:41:16 +0000
(16:41 -0700)
committer
Daira Hopwood
<daira@jacaranda.org>
Tue, 15 Sep 2015 16:56:02 +0000
(17:56 +0100)
src/allmydata/frontends/magic_folder.py
patch
|
blob
|
history
diff --git
a/src/allmydata/frontends/magic_folder.py
b/src/allmydata/frontends/magic_folder.py
index 4b51606cd436df315606832a055d9ec259f8e65e..46e0960e6a8b9bd80651c32748b186c79365f64f 100644
(file)
--- a/
src/allmydata/frontends/magic_folder.py
+++ b/
src/allmydata/frontends/magic_folder.py
@@
-121,13
+121,7
@@
class MagicFolder(service.MultiService):
latest version wins.
"""
v = self._db.get_local_file_version(path)
- if v is None:
- return True
- else:
- if v < remote_version:
- return True
- else:
- return False
+ return (v is None or v < remote_version)
def _get_collective_latest_file(self, filename):
"""_get_collective_latest_file takes a file path pointing to a file managed by