pulp / pulp_deb

Debian repository plugin for Pulp (pulpproject.org)
GNU General Public License v2.0
61 stars 76 forks source link

Suppress the warnings about python3-apt not being installed #1019

Closed quba42 closed 4 months ago

quba42 commented 4 months ago

Describe the bug All non trivial syncs cause log warnings like the following:

“pulpcore-worker-4[59559]: /usr/lib/python3.9/site-packages/debian/deb822.py:716: UserWarning: Parsing of Deb822 data with python3-apt’s apt_pkg was requested but this package is not importable. Is python3-apt installed?

This is true but irrelevant, since we can't use python3-apt unless Pulp was installed on an APT based distribution. It often leads to user confusion when users see the warning and think it is related to their problems (it never is).

To Reproduce Sync any repo, check the logs.

Expected behavior No warnings about things we expect to happen always!