Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit c9968ad

Browse files
bryteiseWilliam Douglas
authored andcommitted
Don't add direct include bundle packages
Direct include packages being accounted for causing the chroot bundle to be content beyond the package. This might be worth hiding behind a bundle config flag setting at some point but for now just disable.
1 parent 34fd245 commit c9968ad

2 files changed

Lines changed: 16 additions & 5 deletions

File tree

builder/bundles.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,22 @@ func resolvePackagesWithOptions(numWorkers int, set bundleSet, packagerCmd []str
404404
return
405405
}
406406

407+
singlePkgMap := make(repoPkgMap)
408+
for _, pkgs := range rpm {
409+
for _, pkg := range pkgs {
410+
if pkg.name == bundle.Name {
411+
singlePkgMap[pkg.repo] = append(singlePkgMap[pkg.repo], pkg)
412+
break
413+
}
414+
}
415+
if len(singlePkgMap) > 0 {
416+
break
417+
}
418+
}
419+
if len(singlePkgMap) > 0 {
420+
rpm = singlePkgMap
421+
}
422+
407423
for _, pkgs := range rpm {
408424
// Add packages to bundle's AllPackages
409425
for _, pkg := range pkgs {

builder/bundleset.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,6 @@ func validateAndFillBundleSet(bundles bundleSet) error {
5858
for k, v := range b.DirectPackages {
5959
b.AllPackages[k] = v
6060
}
61-
for _, include := range b.DirectIncludes {
62-
for k, v := range bundles[include].AllPackages {
63-
b.AllPackages[k] = v
64-
}
65-
}
6661
}
6762

6863
return nil

0 commit comments

Comments
 (0)