[entropy.server] tidy_mirrors: fix weak file detection logic

This commit is contained in:
Fabio Erculiani
2013-03-03 00:18:51 +00:00
parent 9f0bdb959c
commit 552698d2d6

View File

@@ -2280,7 +2280,7 @@ class Server(object):
else:
if not self._expiration_file_exists(repository_id, package_rel):
expire.append(package_rel)
if weak_package_files and self._weaken_file_exists(
if weak_package_files and not self._weaken_file_exists(
repository_id, package_rel):
weaken.append(package_rel)
@@ -2293,7 +2293,7 @@ class Server(object):
if not self._expiration_file_exists(
repository_id, extra_package_rel):
expire.append(extra_package_rel)
if weak_package_files and self._weaken_file_exists(
if weak_package_files and not self._weaken_file_exists(
repository_id, extra_package_rel):
weaken.append(extra_package_rel)