Skip to content

Commit

Permalink
Make sure .report.processed.spdx files are never indexed
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed May 21, 2024
1 parent c7b6386 commit dd2eda1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/Cavil/Model/Packages.pm
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,12 @@ sub reindex_matched_packages ($self, $pid, $priority = 0) {
}

sub remove_spdx_report ($self, $id) {
$self->spdx_report_path($id)->remove;
my $path = $self->spdx_report_path($id);
$path->remove;

# Remove the processed SPDX report as well (if it has been created for some reason)
$$path =~ s/\.spdx$/\.processed\.spdx/;
$path->remove;
}

sub requests_for ($self, $id) {
Expand Down

0 comments on commit dd2eda1

Please sign in to comment.