[entropy.server] _calculate_sync_queues: ignore remote package file if a local .weak file exists

This commit is contained in:
Fabio Erculiani
2013-03-03 01:06:31 +00:00
parent 873ae5267b
commit b905b98525

View File

@@ -1280,6 +1280,11 @@ class Server(object):
continue
if remote_package in local_packages:
# ignore file if its .weak alter-ego exists
if self._weaken_file_exists(repository_id, remote_package):
continue
local_filepath = self._entropy.complete_local_package_path(
remote_package, repository_id)
local_size = entropy.tools.get_file_size(local_filepath)