mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-01 18:56:41 +00:00
remove prints
This commit is contained in:
parent
65ceda3a32
commit
927ee097e5
@ -1049,7 +1049,6 @@ class WriteFileMixin(object):
|
|||||||
# XXX FIXME why ever bother with "rename_no_overwrite"
|
# XXX FIXME why ever bother with "rename_no_overwrite"
|
||||||
# under the hood in replace_file() then..?
|
# under the hood in replace_file() then..?
|
||||||
if os.path.exists(abspath_u):
|
if os.path.exists(abspath_u):
|
||||||
print("unlinking {}".format(abspath_u))
|
|
||||||
os.unlink(abspath_u)
|
os.unlink(abspath_u)
|
||||||
fileutil.replace_file(abspath_u, replacement_path_u)
|
fileutil.replace_file(abspath_u, replacement_path_u)
|
||||||
return abspath_u
|
return abspath_u
|
||||||
@ -1399,12 +1398,6 @@ class Downloader(QueueMixin, WriteFileMixin):
|
|||||||
# no entry in the database for this path), or different from the
|
# no entry in the database for this path), or different from the
|
||||||
# current statinfo;
|
# current statinfo;
|
||||||
|
|
||||||
print(u"just downloaded {}".format(item.file_node.get_uri()))
|
|
||||||
print(u"db_entry.last_uploaded_uri={}".format(db_entry.last_uploaded_uri))
|
|
||||||
print(u"db_entry.last_downloaded_uri={}".format(db_entry.last_downloaded_uri))
|
|
||||||
print(u"dmd_last_downloaded_uri={}".format(dmd_last_downloaded_uri))
|
|
||||||
print(u"dmd_last_uploaded_uri={}".format(dmd_last_uploaded_uri))
|
|
||||||
|
|
||||||
if current_statinfo.exists:
|
if current_statinfo.exists:
|
||||||
self._log("checking conflicts {}".format(item.relpath_u))
|
self._log("checking conflicts {}".format(item.relpath_u))
|
||||||
if (db_entry.mtime_ns != current_statinfo.mtime_ns or \
|
if (db_entry.mtime_ns != current_statinfo.mtime_ns or \
|
||||||
@ -1424,15 +1417,10 @@ class Downloader(QueueMixin, WriteFileMixin):
|
|||||||
# file "at the same time"
|
# file "at the same time"
|
||||||
if db_entry.version >= item.metadata['version']:
|
if db_entry.version >= item.metadata['version']:
|
||||||
self._log("conflict because my version >= remote version")
|
self._log("conflict because my version >= remote version")
|
||||||
print("conflict because my version {} >= remote version {}".format(db_entry.version, item.metadata['version']))
|
|
||||||
is_conflict = True
|
is_conflict = True
|
||||||
elif dmd_last_downloaded_uri != db_entry.last_downloaded_uri:
|
elif dmd_last_downloaded_uri != db_entry.last_downloaded_uri:
|
||||||
is_conflict = True
|
is_conflict = True
|
||||||
self._log("conflict because dmd_last_downloaded_uri != db_entry.last_downloaded_uri")
|
self._log("conflict because dmd_last_downloaded_uri != db_entry.last_downloaded_uri")
|
||||||
print("conflict dmd_last_download ({}) != local last_download ({})".format(
|
|
||||||
dmd_last_downloaded_uri,
|
|
||||||
db_entry.last_downloaded_uri)
|
|
||||||
)
|
|
||||||
|
|
||||||
if item.relpath_u.endswith(u"/"):
|
if item.relpath_u.endswith(u"/"):
|
||||||
if item.metadata.get('deleted', False):
|
if item.metadata.get('deleted', False):
|
||||||
|
Loading…
Reference in New Issue
Block a user