Blame SOURCES/enable-nested-phases.patch

e965a0
From 7381fd558e64559029980def31faf6661909eeb8 Mon Sep 17 00:00:00 2001
e965a0
From: Dalibor Pospisil <dapospis@redhat.com>
e965a0
Date: Tue, 12 Dec 2017 16:04:01 +0100
e965a0
Subject: [PATCH 16/18] nested phases enabled by default
e965a0
e965a0
this prevents some yet undocumented and officily unsupported behavoiur regression
e965a0
---
e965a0
 src/journal.sh | 4 ++--
e965a0
 1 file changed, 2 insertions(+), 2 deletions(-)
e965a0
e965a0
diff --git a/src/journal.sh b/src/journal.sh
e965a0
index 374ddfc..516f292 100644
e965a0
--- a/src/journal.sh
e965a0
+++ b/src/journal.sh
e965a0
@@ -539,7 +539,7 @@ rljAddPhase(){
e965a0
     # Printing
e965a0
     __INTERNAL_PrintHeadLog "$MSG"
e965a0
 
e965a0
-    if [[ -z "$BEAKERLIB_NESTED_PHASES" ]]; then
e965a0
+    if [[ "$BEAKERLIB_NESTED_PHASES" == "0" ]]; then
e965a0
       __INTERNAL_METAFILE_INDENT_LEVEL=2
e965a0
       __INTERNAL_PHASE_TYPE=( "$1" )
e965a0
       __INTERNAL_PHASE_NAME=( "$MSG" )
e965a0
@@ -612,7 +612,7 @@ rljClosePhase(){
e965a0
     rm -f $logfile
e965a0
 
e965a0
     # Reset of state variables
e965a0
-    if [[ -z "$BEAKERLIB_NESTED_PHASES" ]]; then
e965a0
+    if [[ "$BEAKERLIB_NESTED_PHASES" == "0" ]]; then
e965a0
       __INTERNAL_METAFILE_INDENT_LEVEL=1
e965a0
       __INTERNAL_PHASE_TYPE=()
e965a0
       __INTERNAL_PHASE_NAME=()
e965a0
-- 
e965a0
2.14.3
e965a0