Add DryRunner implementation to dpkg package

Co-authored-by: taigrr <8261498+taigrr@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-28 06:54:06 +00:00
parent 9f943e9097
commit ec303b665f

View File

@@ -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)
)