Skip to content

Commit

Permalink
fixup! Improve optimize sync conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
quba42 committed Oct 2, 2023
1 parent faa1855 commit ea6e7cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pulp_deb/app/tasks/synchronizing.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ def __init__(self, remote, optimize, mirror, previous_repo_version, *args, **kwa
if not previous_sync_info["remote_options"] == self.sync_info["remote_options"]:
log.info(_("Setting optimize=False since the remote options have changed."))
self.optimize = False
if mirror and not previous_sync_info["sync_options"]["mirror"]:
if mirror and not previous_sync_info["sync_options"].get("mirror", False):
log.info(_("Setting optimize=False since this sync switches to mirror=True."))
self.optimize = False
# TODO: https://github.com/pulp/pulp_deb/issues/631
Expand Down

0 comments on commit ea6e7cf

Please sign in to comment.