Please sign in to comment.
Detect consumer use of upstream ``apt_pkg`` module
When our consumer use the upstream ``apt_pkg`` module in conjunction with the apt_cache helper function, they may expect us to call ``apt_pkg.init()`` for them. Detect this situation, log a warning and make the call to ``apt_pkg.init()`` to avoid the consumer Python interpreter from crashing with a segmentation fault.
- Loading branch information...