chiark / gitweb /
check_tree.pl : Do not skip mask info with useless hunks.
authorSven Eden <yamakuzure@gmx.net>
Thu, 17 May 2018 06:13:21 +0000 (08:13 +0200)
committerSven Eden <yamakuzure@gmx.net>
Thu, 24 May 2018 16:50:09 +0000 (18:50 +0200)
pwx/check_tree.pl
pwx/last_mutual_commits.csv

index 35173aeb334abe2992b43d8d276a7e3b34e2c226..c293d6c9da50e4710e2fa3006848d299f095fafc 100755 (executable)
@@ -478,21 +478,22 @@ sub build_output {
                $in_mask_block = $hHunk->{is_mask} && (!$hHunk->{is_endif}) ? 1 : 0;
                $in_else_block = $hHunk->{is_else} && (!$hHunk->{is_endif}) ? 1 : 0;
 
-               # The useless are to be skipped
-               $hHunk->{useful} or next;
+               # The useless are to be skipped, but we need the [e]logind[m]ask[i]nfo
+               if ($hHunk->{useful}) {
 
-               # --- Add a comment line for later processing of .pwx files
-               $hFile{pwxfile} and push(@{$hFile{output}}, "# emi ${in_mask_block} ${in_else_block}");
+                       # --- Add the header line -----------------
+                       # -----------------------------------------
+                       push(@{$hFile{output}}, get_hunk_head(\$offset));
 
-               # --- Add the header line -----------------
-               # -----------------------------------------
-               push(@{$hFile{output}}, get_hunk_head(\$offset));
-
-               # --- Add the hunk lines ------------------
-               # -----------------------------------------
-               for my $line (@{$hHunk->{lines}}) {
-                       push(@{$hFile{output}}, $line);
+                       # --- Add the hunk lines ------------------
+                       # -----------------------------------------
+                       for my $line (@{$hHunk->{lines}}) {
+                               push(@{$hFile{output}}, $line);
+                       }
                }
+
+               # --- Add a comment line for later processing of .pwx files
+               $hFile{pwxfile} and push(@{$hFile{output}}, "# emi ${in_mask_block} ${in_else_block}");
        } ## End of walking the hunks
 
        return 1;
index c671aac231d5ed16c78dc85bafc30bc7c67f1733..24a922669fb6cfbb41359aa1b425e87f3106adcb 100644 (file)
@@ -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        bce40de9d src-6d8c71eb8 tgt-a4c1d1d54
+../systemd-upstream v237        245992a0c src-6d8c71eb8 tgt-6a7308317