Skip to content

Commit

Permalink
core: Add allow-downgrade flag to apt
Browse files Browse the repository at this point in the history
  • Loading branch information
matbme committed Jul 31, 2023
1 parent 68f3f2f commit afecfec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/dpkg-buildpackage.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func BuildDpkgBuildPkgModule(module Module) (string, error) {
)

for _, path := range module.Source.Paths {
cmd += fmt.Sprintf(" && apt install -y ../%s*.deb", path)
cmd += fmt.Sprintf(" && apt install -y --allow-downgrades ../%s*.deb", path)
}

cmd += " && apt clean"
Expand Down

0 comments on commit afecfec

Please sign in to comment.