mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 07:54:36 +00:00
Restart dovecot after package replacement even when `policy-rc.d` blocks package-triggered restarts, avoid reinstalling already-correct packages. Adds proper version separation for dovecot packages: - Split DOVECOT_VERSION into DOVECOT_ARCHIVE_VERSION (for URLs/filenames) and DOVECOT_PACKAGE_VERSION (epoch-prefixed for dpkg matching). - Update _download_dovecot_package() to return (path, changed) tuple so install() can track whether packages triggered restart intent. - Use self.need_restart |= changed consistently throughout deployer. - Move self.need_restart = True inside `if debs:` block -- previously the apt pin file write unconditionally forced a restart every deploy. - Comment on dpkg retry pattern (first dpkg may fail on missing deps, apt-get --fix-broken resolves, then dpkg retries). Authored-by: Alex V. <119082209+Retengart@users.noreply.github.com> fixup