summaryrefslogtreecommitdiff
path: root/ftparchive/writer.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-03-26 22:38:50 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-03-26 22:38:50 +0100
commit34f1d96cf5657b5e34cd9880dccfa2028fa16b13 (patch)
tree300bd83cccfc8872e99616826b0753e364450007 /ftparchive/writer.h
parent4e794c509becfd7e2bddfddc1205dc81397a48bd (diff)
Switch the TranslationWriter to use MultiCompress to be able to generate
the compressed files as we want them and to prevent the file to be replaced without a reason which could save us from steady redownloads of a file with the same content.
Diffstat (limited to 'ftparchive/writer.h')
-rw-r--r--ftparchive/writer.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/ftparchive/writer.h b/ftparchive/writer.h
index 2afd1af1f..3123a7f46 100644
--- a/ftparchive/writer.h
+++ b/ftparchive/writer.h
@@ -22,6 +22,7 @@
#include <set>
#include "cachedb.h"
+#include "multicompress.h"
#include "override.h"
#include "apt-ftparchive.h"
@@ -75,6 +76,7 @@ class FTWScanner
class TranslationWriter
{
+ MultiCompress *Comp;
FILE *Output;
std::set<string> Included;
unsigned short RefCounter;
@@ -85,8 +87,8 @@ class TranslationWriter
unsigned short GetRefCounter() const { return RefCounter; };
bool DoPackage(string const &Pkg, string const &Desc, string const &MD5);
- TranslationWriter(string const &File);
- TranslationWriter() : Output(NULL), RefCounter(0) {};
+ TranslationWriter(string const &File, string const &TransCompress, mode_t const &Permissions);
+ TranslationWriter() : Comp(NULL), Output(NULL), RefCounter(0) {};
~TranslationWriter();
};