overridesuite_id = suite.get_overridesuite().suite_id
- writer = SourcesFileWriter(archive=suite.archive.path, suite=suite.suite_name, component=component.component_name)
+ writer_args = {
++ 'archive': suite.archive.path,
+ 'suite': suite.suite_name,
+ 'component': component.component_name
+ }
+ if suite.indices_compression is not None:
+ writer_args['compression'] = suite.indices_compression
+ writer = SourcesFileWriter(**writer_args)
output = writer.open()
# run query and write Sources
if include_long_description:
metadata_skip.append("Description-md5")
- writer = PackagesFileWriter(archive=suite.archive.path, 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)
output = writer.open()
- r = session.execute(_packages_query, {"suite": suite_id, "component": component_id,
+ r = session.execute(_packages_query, {"archive_id": suite.archive.archive_id,
+ "suite": suite_id, "component": component_id, 'component_name': component.component_name,
"arch": architecture_id, "type_id": type_id, "type_name": type_name, "arch_all": arch_all_id,
"overridesuite": overridesuite_id, "metadata_skip": metadata_skip,
"include_long_description": 'true' if include_long_description else 'false'})
suite = session.query(Suite).get(suite_id)
component = session.query(Component).get(component_id)
- writer = TranslationFileWriter(archive=suite.archive.path, suite=suite.suite_name, component=component.component_name, language="en")
+ writer_args = {
++ 'archive': suite.archive.path,
+ 'suite': suite.suite_name,
+ 'component': component.component_name,
+ 'language': 'en',
+ }
+ if suite.i18n_compression is not None:
+ writer_args['compression'] = suite.i18n_compression
+ writer = TranslationFileWriter(**writer_args)
output = writer.open()
r = session.execute(_translations_query, {"suite": suite_id, "component": component_id})