summaryrefslogtreecommitdiff
path: root/python/acquire.cc
diff options
context:
space:
mode:
Diffstat (limited to 'python/acquire.cc')
-rw-r--r--python/acquire.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/acquire.cc b/python/acquire.cc
index d0549fd9..704ad0bd 100644
--- a/python/acquire.cc
+++ b/python/acquire.cc
@@ -354,7 +354,9 @@ PyTypeObject PkgAcquireFileType =
sizeof(CppOwnedPyObject<pkgAcqFile*>),// tp_basicsize
0, // tp_itemsize
// Methods
- CppOwnedDeallocPtr<pkgAcqFile*>, // tp_dealloc
+ // Not ..Ptr, because this would cause the item to be removed from the
+ // fetcher, which would be incompatible to previous behaviour.
+ CppOwnedDealloc<pkgAcqFile*>, // tp_dealloc
0, // tp_print
0, // tp_getattr
0, // tp_setattr