Skip to content

Commit

Permalink
Revert first-time patching logic
Browse files Browse the repository at this point in the history
Signed-off-by: Miaha Cybersec <[email protected]>
  • Loading branch information
Miaha Cybersec authored and Miaha Cybersec committed Jul 30, 2024
1 parent 21d48d5 commit a01880e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/pkgmgr/apk.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func (am *apkManager) upgradePackages(ctx context.Context, updates unversioned.U
}

// Diff the installed updates and merge that into the target image
patchDiff := llb.Diff(am.config.ImageState, apkInstalled)
patchDiff := llb.Diff(apkUpdated, apkInstalled)
patchMerge := llb.Merge([]llb.State{am.config.ImageState, patchDiff})

return &patchMerge, resultManifestBytes, nil
Expand Down
2 changes: 1 addition & 1 deletion pkg/pkgmgr/dpkg.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ func (dm *dpkgManager) installUpdates(ctx context.Context, updates unversioned.U
}

// Diff the installed updates and merge that into the target image
patchDiff := llb.Diff(dm.config.ImageState, aptInstalled)
patchDiff := llb.Diff(aptUpdated, aptInstalled)
patchMerge := llb.Merge([]llb.State{dm.config.ImageState, patchDiff})

return &patchMerge, resultsBytes, nil
Expand Down

0 comments on commit a01880e

Please sign in to comment.