Package daklib :: Module filewriter :: Class BaseFileWriter
[hide private]
[frames] | no frames]

Class BaseFileWriter

source code


Base class for compressed and uncompressed file writing.

Instance Methods [hide private]
 
__init__(self, template, **keywords)
The template argument is a string template like "dists/%(suite)s/%(component)s/Contents-%(architecture)s.gz" that should be relative to the archive's root directory.
source code
 
open(self)
Returns a file object for writing.
source code
 
rename(self, filename) source code
 
compress(self, cmd, suffix, path) source code
 
close(self)
Closes the file object and does the compression and rename work.
source code
Method Details [hide private]

__init__(self, template, **keywords)
(Constructor)

source code 

The template argument is a string template like "dists/%(suite)s/%(component)s/Contents-%(architecture)s.gz" that should be relative to the archive's root directory. The keywords include strings for suite, component, architecture and booleans uncompressed, gzip, bzip2.