include strings for suite, component, architecture and booleans
uncompressed, gzip, bzip2.
'''
- self.uncompressed = keywords.get('uncompressed', True)
- self.gzip = keywords.get('gzip', False)
- self.bzip2 = keywords.get('bzip2', False)
+ compression = keywords.get('compression', ['none'])
+ self.uncompressed = 'none' in compression
+ self.gzip = 'gzip' in compression
+ self.bzip2 = 'bzip2' in compression
root_dir = Config()['Dir::Root']
relative_dir = template % keywords
self.path = os.path.join(root_dir, relative_dir)
Output files are gzip compressed only.
'''
flags = {
- 'uncompressed': False,
- 'gzip': True,
- 'bzip2': False
+ 'compression': ['gzip'],
}
flags.update(keywords)
if flags['debtype'] == 'deb':
Output files are gzip compressed only.
'''
flags = {
- 'uncompressed': False,
- 'gzip': True,
- 'bzip2': False
+ 'compression': ['gzip'],
}
flags.update(keywords)
template = "dists/%(suite)s/%(component)s/Contents-source"
are strings. Output files are gzip compressed only.
'''
flags = {
- 'uncompressed': False,
- 'gzip': True,
- 'bzip2': True
+ 'compression': ['gzip', 'bzip2'],
}
flags.update(keywords)
if flags['debtype'] == 'deb':
files are gzip compressed only.
'''
flags = {
- 'uncompressed': False,
- 'gzip': True,
- 'bzip2': True
+ 'compression': ['gzip', 'bzip2'],
}
flags.update(keywords)
template = "dists/%(suite)s/%(component)s/source/Sources"
Output files are bzip2 compressed only.
'''
flags = {
- 'uncompressed': False,
- 'gzip': False,
- 'bzip2': True,
+ 'compression': ['bzip2'],
'language': 'en',
}
flags.update(keywords)