Fix exclude_deb_section processing
Change-Id: I5127a9a2c23e4892cc7642349d3dff167a014103
diff --git a/_states/debmirror.py b/_states/debmirror.py
index c868b40..eef8182 100644
--- a/_states/debmirror.py
+++ b/_states/debmirror.py
@@ -93,6 +93,9 @@
cmdline += ' --root="{}"'.format(tgt.get('mirror_root'))
if tgt.get('arch', 'amd64'):
cmdline += ' --arch=' + ','.join(tgt.get('arch'))
+ if tgt.get('exclude_deb_section'):
+ for section in tgt['exclude_deb_section']:
+ cmdline += " --exclude-deb-section='" + section + "'"
if tgt.get('filter'):
for key, value in enumerate(sorted(tgt['filter'])):
cmdline += " " + tgt['filter'][value]