Skip to content

Commit

Permalink
Use --allow-downgrade when invoking apt install
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusPettersson98 committed Nov 8, 2024
1 parent 3de3c63 commit 72218ad
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/test-runner/src/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,13 @@ fn apt_command() -> Command {
// instead.
cmd.args(["-o", "DPkg::Lock::Timeout=60"]);
cmd.arg("-qy");
// `apt` may consider installing a development build to be a downgrade from the baseline if the
// major version is identical, in which case the ordering is incorrectly based on the git hash
// suffix.
//
// Note that this is only sound if we take precaution to check the installed version after
// running this command.
cmd.arg("--allow-downgrades");

cmd.env("DEBIAN_FRONTEND", "noninteractive");

Expand Down

0 comments on commit 72218ad

Please sign in to comment.