Skip to content

Commit

Permalink
Hotfix for script-languages-release/794 (#430)
Browse files Browse the repository at this point in the history
related to script-languages-release/794
  • Loading branch information
tomuben authored Jun 19, 2024
1 parent 09d3e3d commit 0831aa2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/scripts/package_mgmt_utils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ sub generate_joined_and_transformed_string_from_files {
if (!@transformed_lines) {
@transformed_lines = @transformed_lines_for_current_file;
} else {
if ($#transformed_lines_for_current_file != $#transformed_lines) {
my $transformed_lines_for_current_file_count = scalar @transformed_lines_for_current_file;
my $transformed_lines_count = scalar @transformed_lines;
if ($transformed_lines_count > 0 and $transformed_lines_for_current_file_count > 0 and $transformed_lines_for_current_file_count != $transformed_lines_count) {
die "Internal error processing package file $file. The transformed package files have different number of columns.\n";
}
for my $i (0 .. $#transformed_lines_for_current_file) {
Expand Down

0 comments on commit 0831aa2

Please sign in to comment.