Your message dated Sun, 16 Mar 2008 19:46:40 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Done in version 0.5.15
has caused the Debian Bug report #442841,
regarding Add an AptSession class to address external apt cache updates
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.)
--
442841: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=442841
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: libept-dev
Version: 0.5.10+b1
Severity: wishlist
Hello,
When outside of libept the Apt database is changed (for example, after
an apt-get update), the currently opened Apt silently object becomes
invalid.
A possible idea to work around this is to obtain access to the Apt
object through an AptSession object, which sits in the stack with RAII
semantics. Every time AptSession is instantiated, it checks if the
timestamp of the Apt database is changed, and if so it reopens the Apt
cache before giving access to the Apt object.
Ciao,
Enrico
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.22-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages libept-dev depends on:
ii libapt-pkg-dev 0.7.6 Development files for APT's libapt
ii libept0 0.5.10+b1 High-level library for managing De
ii libtagcoll2-dev 2.0.6-1 Functions used to manipulate tagge
ii libwibble-dev 0.1.10 Library of various useful C++ code
ii libxapian-dev 1.0.2-1 Development files for Xapian searc
Versions of packages libept-dev recommends:
ii pkg-config 0.22-1 manage compile and link flags for
-- no debconf information
--- End Message ---
--- Begin Message ---
Version: 0.5.15
Hello,
in 0.5.15 I've implemented Apt::checkCacheUpdates, that can be called to
reopen the cache if it has changed.
The idea is that you call apt.checkCacheUpdates() before starting a
sequence of apt operations, and hope that the apt cache isn't changed
exactly during that sequence. But at least, the likelyhood of that is
low.
Unfortunately, there's no way to completely prevent this without being
root, as the apt cache doesn't support read locking.
Ciao,
Enrico
--
GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <[EMAIL PROTECTED]>
signature.asc
Description: Digital signature
--- End Message ---