From 7270aa96f095139fa84016bb9e70d7c5600026d2 Mon Sep 17 00:00:00 2001 From: Gideon <87426140+GideonBear@users.noreply.github.com> Date: Wed, 29 Oct 2025 18:43:03 +0100 Subject: [PATCH] feat(deb-get): Skip non-deb-get packages by passing --dg-only (#1386) --- src/steps/os/linux.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/steps/os/linux.rs b/src/steps/os/linux.rs index 40186e2c..642958e1 100644 --- a/src/steps/os/linux.rs +++ b/src/steps/os/linux.rs @@ -582,7 +582,14 @@ pub fn run_deb_get(ctx: &ExecutionContext) -> Result<()> { print_separator("deb-get"); ctx.execute(&deb_get).arg("update").status_checked()?; - ctx.execute(&deb_get).arg("upgrade").status_checked()?; + ctx.execute(&deb_get) + .arg("upgrade") + // Since the `apt` step already updates all other apt packages, don't check for updates + // to all packages here. This does suboptimally check for updates for deb-get packages + // that apt can update (that were installed via a repository), but that is only a few, + // and there's nothing we can do about that. + .arg("--dg-only") + .status_checked()?; if ctx.config().cleanup() { let output = ctx.execute(&deb_get).arg("clean").output_checked()?;