From ec303b665f779676379852baef8ac325a6d123fc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 28 Feb 2026 06:54:06 +0000 Subject: [PATCH] Add DryRunner implementation to dpkg package Co-authored-by: taigrr <8261498+taigrr@users.noreply.github.com> --- dpkg/dpkg.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dpkg/dpkg.go b/dpkg/dpkg.go index ed922ed..823689c 100644 --- a/dpkg/dpkg.go +++ b/dpkg/dpkg.go @@ -101,9 +101,13 @@ func (d *Dpkg) ParseArch(name string) (string, string) { return parseArch(name) } +// SupportsDryRun reports that dpkg honors [snack.WithDryRun] via --simulate. +func (d *Dpkg) SupportsDryRun() bool { return true } + // Compile-time interface checks. var ( _ snack.Manager = (*Dpkg)(nil) _ snack.FileOwner = (*Dpkg)(nil) _ snack.NameNormalizer = (*Dpkg)(nil) + _ snack.DryRunner = (*Dpkg)(nil) )