- writer = PackagesFileWriter(suite=suite.suite_name, component=component.component_name,
- architecture=architecture.arch_string, debtype=type_name)
+ writer_args = {
+ 'archive': suite.archive.path,
+ 'suite': suite.suite_name,
+ 'component': component.component_name,
+ 'architecture': architecture.arch_string,
+ 'debtype': type_name
+ }
+ if suite.indices_compression is not None:
+ writer_args['compression'] = suite.indices_compression
+ writer = PackagesFileWriter(**writer_args)