summaryrefslogtreecommitdiff
path: root/pwx
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2018-05-17 20:01:49 +0200
committerSven Eden <yamakuzure@gmx.net>2018-05-24 18:50:09 +0200
commit3304a1f98786bcd4d50042398eb474975956d7f2 (patch)
tree8868dd71ea5186045b2667641f6bc2604107dc2a /pwx
parentce5bb30a917a12d478c052efe92ff5d7810c9efe (diff)
check_tree.pl: Fixed unprepare_xml()
Diffstat (limited to 'pwx')
-rwxr-xr-xpwx/check_tree.pl23
-rw-r--r--pwx/last_mutual_commits.csv2
2 files changed, 16 insertions, 9 deletions
diff --git a/pwx/check_tree.pl b/pwx/check_tree.pl
index 0fba81834..040682e1c 100755
--- a/pwx/check_tree.pl
+++ b/pwx/check_tree.pl
@@ -943,7 +943,8 @@ sub check_masks {
and return hunk_failed("check_masks: Mask start found while being in an insert block!");
substr($$line, 0, 1) = " "; ## Remove '-'
$in_mask_block = 1;
- $hHunk->{is_mask} = 1;
+ $hHunk->{is_mask} = 1;
+ $hHunk->{is_endif} = 0;
# While we are here we can check the previous line.
# All masks shall be preceded by an empty line to enhance readability.
@@ -963,7 +964,10 @@ sub check_masks {
$in_insert_block
and return hunk_failed("check_masks: Insert start found while being in an insert block!");
substr($$line, 0, 1) = " "; ## Remove '-'
- $in_insert_block = 1;
+ $in_insert_block = 1;
+ $hHunk->{is_mask} = 0;
+ $hHunk->{is_else} = 0;
+ $hHunk->{is_endif} = 0;
# While we are here we can check the previous line.
# All inserts shall be preceded by an empty line to enhance readability.
@@ -985,8 +989,10 @@ sub check_masks {
|| ( $$line =~ m/else\s+-->\s*$/ )
|| ( $$line =~ m,\*\s+else\s+\*\*/\s*$, ) ) ) {
substr($$line, 0, 1) = " "; ## Remove '-'
- $in_else_block = 1;
- $hHunk->{is_else} = 1;
+ $in_else_block = 1;
+ $in_mask_block
+ and $hHunk->{is_else} = 1;
+ $hHunk->{is_endif} = 0;
next;
}
@@ -1914,7 +1920,7 @@ sub unprepare_shell {
$is_else = 0;
@lIn = splice(@{$hFile{output}});
for my $line (@lIn) {
- if ( $line =~ /^# emi (\d) (\d)$/ ) {
+ if ( $line =~ m/^\s*#\s+emi\s+([01])\s+([01])$/ ) {
$is_block = $1;
$is_else = $2;
# This does not need to be transported.
@@ -1924,8 +1930,9 @@ sub unprepare_shell {
$is_block or $is_else = 0;
$line =~ m,^[ ]+#if 0 /* .*elogind.*, and $is_block = 1;
$is_block and $line =~ m,^[ ]?#else, and $is_else = 1;
- $is_block and (!$is_else) and ("#" ne substr($line, 1, 1))
- and "@@" ne substr($line, 0, 2) and substr($line, 1, 0) = "# ";
+ $is_block and (!$is_else)
+ and "@@" ne substr($line, 0, 2)
+ and substr($line, 1, 0) = "# ";
push @{$hFile{output}}, $line;
}
@@ -2007,7 +2014,7 @@ sub unprepare_xml {
$is_else = 0;
@lIn = splice(@{$hFile{output}});
for my $line (@lIn) {
- if ( $line =~ /^# emi (\d) (\d)$/ ) {
+ if ( $line =~ m/^\s*#\s+emi\s+([01])\s+([01])$/ ) {
$is_block = $1;
$is_else = $2;
# This does not need to be transported.
diff --git a/pwx/last_mutual_commits.csv b/pwx/last_mutual_commits.csv
index d57cce4ba..60af65140 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 5a8af7471 src-6d8c71eb8 tgt-41bbfe402
+../systemd-upstream v237 245992a0c src-6d8c71eb8 tgt-970cccece