Skip to content

fix(dpkg): de-duplicate same packages with different filePaths from different layers #8297

Closed
@DmitriyLewen

Description

@DmitriyLewen

Description

We remove duplicates for debian packages from one layers:

pkg = a.parseDpkgPkg(header)
if pkg != nil {
pkg.Digest = digests[pkg.ID]
pkgs[pkg.ID] = pkg
pkgIDs[pkg.Name] = pkg.ID
}

But there are cases when same packages with different filePaths are placed in different layers.
We need to de-duplicate these packages.

See #8273 for more details.

Discussed in #8273

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.

Type

No type

Projects

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions