From fb01e450725b83bdae5e4863ecd74cf2a53fc6e8 Mon Sep 17 00:00:00 2001 From: Sven Eden Date: Thu, 17 May 2018 08:19:47 +0200 Subject: check_tree.pl : Fix transportation of elogind mask info --- pwx/check_tree.pl | 12 ++++++------ pwx/last_mutual_commits.csv | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'pwx') diff --git a/pwx/check_tree.pl b/pwx/check_tree.pl index c293d6c9d..0fba81834 100755 --- a/pwx/check_tree.pl +++ b/pwx/check_tree.pl @@ -275,10 +275,6 @@ for my $file_part (@source_files) { for (my $pos = 0; $pos < $hFile{count}; ++$pos) { $hHunk = $hFile{hunks}[$pos]; ## Global shortcut - # The state of what the hunk did must be known: - $in_mask_block = $hHunk->{is_mask} && (!$hHunk->{is_endif}) ? 1 : 0; - $in_else_block = $hHunk->{is_else} && (!$hHunk->{is_endif}) ? 1 : 0; - # (pre -> early out) hunk_is_useful or next; @@ -475,8 +471,12 @@ sub build_output { $hHunk = $hFile{hunks}[$pos]; ## Global shortcut # The state of what the hunk did must be known: - $in_mask_block = $hHunk->{is_mask} && (!$hHunk->{is_endif}) ? 1 : 0; - $in_else_block = $hHunk->{is_else} && (!$hHunk->{is_endif}) ? 1 : 0; + $hHunk->{is_mask} and $in_mask_block = 1; + $hHunk->{is_else} and $in_else_block = 1; + if ($hHunk->{is_endif}) { + $in_mask_block = 0; + $in_else_block = 0; + }; # The useless are to be skipped, but we need the [e]logind[m]ask[i]nfo if ($hHunk->{useful}) { diff --git a/pwx/last_mutual_commits.csv b/pwx/last_mutual_commits.csv index 24a922669..d57cce4ba 100644 --- a/pwx/last_mutual_commits.csv +++ b/pwx/last_mutual_commits.csv @@ -11,4 +11,4 @@ ../systemd-upstream master 265710c20 src-efaa3176a x ../systemd-upstream v234 d6d0473dc src-782c925f7 x ../systemd-upstream v236 83fefc888 src-f78a88bec x -../systemd-upstream v237 245992a0c src-6d8c71eb8 tgt-6a7308317 +../systemd-upstream v237 5a8af7471 src-6d8c71eb8 tgt-41bbfe402 -- cgit v1.2.3