utils: fix include prior segments indention

The assignment for setting segments['include'] = True was wrong,
it occured inside the 'if not segments['include'] and True in
segments.values():' block, whereas it needed to always get set outside
of that if test.

Signed-off-by: Steve Beattie <steve@nxnw.org>
Acked-by: Christian Boltz <apparmor@cboltz.de>
This commit is contained in:
Steve Beattie 2014-11-26 14:28:21 -08:00
parent 21b6e70865
commit a5d38d3dc9

View file

@ -4242,7 +4242,7 @@ def serialize_profile_from_old_profile(profile_data, name, options):
write_prof_data[name]['allow'].pop(segs)
if write_prof_data[name]['deny'].get(segs, False):
write_prof_data[name]['deny'].pop(segs)
segments['include'] = True
segments['include'] = True
write_prof_data[hat]['include'].pop(include_name)
data.append(line)
else: