Skip to content

Commit

Permalink
chunking: Ignore ostree commit layer
Browse files Browse the repository at this point in the history
I was hitting a panic in this section of the code; I think
triggering it involves removing packages, but I haven't narrowed
it down more precisely.

Hopefully at some point I will try to add some more unit
testing for this...
  • Loading branch information
cgwalters committed Sep 8, 2023
1 parent 8b04520 commit 5730f9f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/chunking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,10 @@ fn basic_packing_with_prior_build<'a>(
for bin in curr_build {
let mut mod_bin = Vec::new();
for pkg in bin {
// An empty component set can happen for the ostree commit layer; ignore that.
if pkg.is_empty() {
continue;
}
mod_bin.push(name_to_component[&pkg]);
}
modified_build.push(mod_bin);
Expand Down

0 comments on commit 5730f9f

Please sign in to comment.