diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-07-28 11:09:00 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-07-28 11:09:00 +0200 |
| commit | cee5d33d44130ce8ceb7b563f7b97f2bf9a3ca5c (patch) | |
| tree | 8157a049457a566f6ac5b2e665cba01629aadd58 /python/tag.cc | |
| parent | 3b4330920da718d2dbb2a4a94577c07eaa58a8c5 (diff) | |
| parent | d642c9ea22f5705acfcba79493f48293626771c3 (diff) | |
| download | python-apt-cee5d33d44130ce8ceb7b563f7b97f2bf9a3ca5c.tar.gz | |
merged from the debian-sid bzr branch
Diffstat (limited to 'python/tag.cc')
| -rw-r--r-- | python/tag.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/python/tag.cc b/python/tag.cc index 9fe12a1a..97039bc4 100644 --- a/python/tag.cc +++ b/python/tag.cc @@ -393,7 +393,12 @@ static PyObject *TagFileNew(PyTypeObject *type,PyObject *Args,PyObject *kwds) return 0; TagFileData *New = (TagFileData*)type->tp_alloc(type, 0); +#ifdef APT_HAS_GZIP + new (&New->Fd) FileFd(); + New->Fd.OpenDescriptor(fileno, FileFd::ReadOnlyGzip, false); +#else new (&New->Fd) FileFd(fileno,false); +#endif New->Owner = File; Py_INCREF(New->Owner); new (&New->Object) pkgTagFile(&New->Fd); |
