Skip to content

deb: set "--allow-downgrades" if a specific version is requested#570

Open
thaJeztah wants to merge 1 commit into
docker:masterfrom
thaJeztah:allow_downgrades
Open

deb: set "--allow-downgrades" if a specific version is requested#570
thaJeztah wants to merge 1 commit into
docker:masterfrom
thaJeztah:allow_downgrades

Conversation

@thaJeztah

@thaJeztah thaJeztah commented Jul 13, 2026

Copy link
Copy Markdown
Member

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Debian/Ubuntu/Raspbian install path to support downgrading when the installer is asked to install a specific Docker package version (i.e., when VERSION pinning is in effect), addressing downgrade failures during apt-get install.

Changes:

  • Introduces an apt_flags variable for Debian-family installs instead of hardcoding -y -qq.
  • Conditionally appends --allow-downgrades when a pinned package version is being installed.
  • Uses the composed apt_flags when invoking apt-get install for Docker packages.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@thaJeztah thaJeztah marked this pull request as ready for review July 13, 2026 12:35
@thaJeztah thaJeztah requested a review from vvoland July 13, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow Downgrade option

2 participants