From: Dmitry Sharshakov <dmitry.sharshakov@xxxxxxxxxxxxxx> Avoid errors when adding comments to CIL output like in audit2allow Signed-off-by: Dmitry Sharshakov <dmitry.sharshakov@xxxxxxxxxxxxxx> --- python/sepolgen/src/sepolgen/refpolicy.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/sepolgen/src/sepolgen/refpolicy.py b/python/sepolgen/src/sepolgen/refpolicy.py index 2ec75fba..32278896 100644 --- a/python/sepolgen/src/sepolgen/refpolicy.py +++ b/python/sepolgen/src/sepolgen/refpolicy.py @@ -1217,6 +1217,7 @@ class Comment: self.lines = l else: self.lines = [] + self.gen_cil = False def to_string(self): # If there are no lines, treat this as a spacer between -- 2.45.2