From b0abeea43f6e51c452af68d8ec9bf3d0f701d772 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Sun, 12 Jul 2009 21:22:58 +0200 Subject: python/acquire.cc: Fix segmentation faults, introduce PyAcquireObject. Make AcquireItem objects raise ValueError instead of segfaulting when the Acquire() object is shut down or the main object (e.g. AcquireFile) is deallocated. This is implemented by using a vector of the AcquireItem objects, and setting AcquireItem->Object = NULL, when the memory 'Object' previously pointed to is going to be deleted. --- debian/changelog | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index 1f43cc8c..304237c1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -31,6 +31,8 @@ python-apt (0.7.92) UNRELEASED; urgency=low CompTypeDeb, because we don't return integer values for CompType anymore. * Introduce apt_pkg.Hashes class. + * Make AcquireItem objects raise ValueError instead of segfaulting when the Acquire() + object is shut down or the main object (e.g. AcquireFile) is deallocated. [ Sebastian Heinlein ] * apt/progress.py: Extract the package name from the status message @@ -46,7 +48,7 @@ python-apt (0.7.92) UNRELEASED; urgency=low * python/progress.cc: - low level code for update_status_full and pulse_items() - -- Julian Andres Klode Sun, 12 Jul 2009 18:51:57 +0200 + -- Julian Andres Klode Sun, 12 Jul 2009 21:19:40 +0200 python-apt (0.7.91) experimental; urgency=low -- cgit v1.2.3