[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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, e.g.

reopen=True

The default could be False to keep backward compatibility.

Apart from this the documentation really needs to state
that an open() is required after that. The info can be obtained
from the examples, but thats probably not the right place.
Better would be to state that requirement in update() documentation.

Best Regards,
Patrick



Reply to: