$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;
../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