Skip to content

Commit

Permalink
fix: do not upgrade held packages (#457)
Browse files Browse the repository at this point in the history
Signed-off-by: Sertac Ozercan <sozercan@gmail.com>
  • Loading branch information
sozercan committed Jan 9, 2024
1 parent 29397a0 commit a15c13e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pkgmgr/dpkg.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func (dm *dpkgManager) installUpdates(ctx context.Context, updates unversioned.U
// - Reports being slightly out of date, where a newer security revision has displaced the one specified leading to not found errors.
// - Reports not specifying version epochs correct (e.g. bsdutils=2.36.1-8+deb11u1 instead of with epoch as 1:2.36.1-8+dev11u1)
// Note that this keeps the log files from the operation, which we can consider removing as a size optimization in the future.
const aptInstallTemplate = `sh -c "apt install --no-install-recommends --allow-change-held-packages -y %s && apt clean -y"`
const aptInstallTemplate = `sh -c "apt install --no-install-recommends -y %s && apt clean -y"`
pkgStrings := []string{}
for _, u := range updates {
pkgStrings = append(pkgStrings, u.Name)
Expand Down

0 comments on commit a15c13e

Please sign in to comment.