Bug#622342: python-apt: add option to reopen cache on update

2011-04-12 Thread Patrick Schoenfeld
On Tue, Apr 12, 2011 at 02:08:44PM +0200, Julian Andres Klode wrote: > On Di, 2011-04-12 at 13:10 +0200, Patrick Schoenfeld wrote: > > It would be nice, if update() supported that as an argument, e.g. > > > > reopen=True > > > > The default could be False to keep backward compatibility. > No, we'

Bug#622342: python-apt: add option to reopen cache on update

2011-04-12 Thread Julian Andres Klode
On Di, 2011-04-12 at 13:10 +0200, Patrick Schoenfeld wrote: > It would be nice, if update() supported that as an argument, e.g. > > reopen=True > > The default could be False to keep backward compatibility. No, we'd need yet another parameter for specifying the progress handler for open() then.

Bug#622342: python-apt: add option to reopen cache on update

2011-04-12 Thread Patrick Schoenfeld
Package: python-apt Version: 0.7.100.2 Severity: wishlist Hi, when using Cache().update() it is required to reopen the cache with Cache().open(), because otherwise the cache will be old or even empty if run with empty list directories. It would be nice, if update() supported that as an argument,