Your message dated Sun, 06 Jul 2008 15:17:02 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#487677: fixed in apt-xapian-index 0.10
has caused the Debian Bug report #487677,
regarding [patch] memoly.diff
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
487677: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487677
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: apt-xapian-index
Severity: wishlist
Tags: patch
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu hardy ubuntu-patch

Hi,

attached is a small patch (requires python-apt 0.7.6) that forces the
cache building in memory. This works around a possible race condition
with libapt when the pkgcache.bin is re-generated in a unsafe way
(that is a different bug in libapt :/

Cheers,
 Michael

diff -Nru apt-xapian-index-0.9/update-apt-xapian-index apt-xapian-index-0.9ubuntu1/update-apt-xapian-index
--- apt-xapian-index-0.9/update-apt-xapian-index	2008-06-20 03:52:21.000000000 -0500
+++ apt-xapian-index-0.9ubuntu1/update-apt-xapian-index	2008-06-20 16:47:14.000000000 -0500
@@ -127,7 +127,9 @@
     #db.begin_transaction(False)
 
     # Iterate all Debian packages
-    cache = apt.Cache()
+
+    # force apt to not write a pkgcache.bin
+    cache = apt.Cache(memonly=True)
     count = len(cache)
     for idx, pkg in enumerate(cache):
         # Print progress
@@ -164,7 +166,9 @@
     #db.begin_transaction(False)
 
     # Iterate all Debian packages
-    cache = apt.Cache()
+
+    # force apt to not write a pkgcache.bin
+    cache = apt.Cache(memonly=True)
     count = len(cache)
     for idx, pkg in enumerate(records):
         # Print progress

--- End Message ---
--- Begin Message ---
Source: apt-xapian-index
Source-Version: 0.10

We believe that the bug you reported is fixed in the latest version of
apt-xapian-index, which is due to be installed in the Debian FTP archive:

apt-xapian-index_0.10.dsc
  to pool/main/a/apt-xapian-index/apt-xapian-index_0.10.dsc
apt-xapian-index_0.10.tar.gz
  to pool/main/a/apt-xapian-index/apt-xapian-index_0.10.tar.gz
apt-xapian-index_0.10_all.deb
  to pool/main/a/apt-xapian-index/apt-xapian-index_0.10_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Enrico Zini <[EMAIL PROTECTED]> (supplier of updated apt-xapian-index package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sun, 06 Jul 2008 16:58:20 +0200
Source: apt-xapian-index
Binary: apt-xapian-index
Architecture: source all
Version: 0.10
Distribution: unstable
Urgency: low
Maintainer: Enrico Zini <[EMAIL PROTECTED]>
Changed-By: Enrico Zini <[EMAIL PROTECTED]>
Description: 
 apt-xapian-index - Maintenance tools for a Xapian index of Debian package 
informatio
Closes: 487677
Changes: 
 apt-xapian-index (0.10) unstable; urgency=low
 .
   * Applied patch from Michael Vogt.  Closes: #487677.
Checksums-Sha1: 
 9dcc9e3a8df3a84d89efce5cfe5f19c668ba2715 899 apt-xapian-index_0.10.dsc
 dbe2516b0c2741980bae39771a2d5b31968b588e 17939 apt-xapian-index_0.10.tar.gz
 f8a3cca24df3a8ad30c2fba8de384f5635ae5a78 27234 apt-xapian-index_0.10_all.deb
Checksums-Sha256: 
 7678fca732c1916375f2b26ba0ae13aa7f956d0ce30b0ffd1908f5f089b1d97f 899 
apt-xapian-index_0.10.dsc
 953e992ca82bd20359f8f262fd8b6389f1f9a79804b941d1269157e899645355 17939 
apt-xapian-index_0.10.tar.gz
 381c99b4a11d9991adf89fafaf6cdd41c204e2a16a5f6feb4992acb9cef9e05d 27234 
apt-xapian-index_0.10_all.deb
Files: 
 d722088eff0f8644700f2d68cda3e6fd 899 admin optional apt-xapian-index_0.10.dsc
 0d155e838452fa54edd8163b7988eb9c 17939 admin optional 
apt-xapian-index_0.10.tar.gz
 f2b9af178d3df8489d0ede88e9eef031 27234 admin optional 
apt-xapian-index_0.10_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIcN/Q9LSwzHl+v6sRAkbuAJ0R2L0v2oby9XvktMs3oTzJ6cSNHQCbB3kn
50kFkGa2+RbeEKgqz9JOBJ0=
=3ghu
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to