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 5, 2024
1 parent 777828f commit 72d2dfb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test-runner/src/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,12 @@ fn apt_command() -> Command {
// instead.
cmd.args(["-o", "DPkg::Lock::Timeout=60"]);
cmd.arg("-qy");
// `apt` may sporadically consider installing a development build to be a downgrade from the baseline stable
// version, which is why we pass this flag.
//
// 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 72d2dfb

Please sign in to comment.