abhigenie92 / unattended_upgrades_repos

Generates system-specific repositories to be added in configuration file for silently updating all packages via unattended upgrades.
82 stars 13 forks source link

distro.linux_distribution() is deprecated #11

Open DavidPetrasek opened 6 months ago

DavidPetrasek commented 6 months ago

..../path_to_file/unattended_upgrades_repos.py:47: DeprecationWarning: distro.linux_distribution() is deprecated. It should only be used as a compatibility shim with Python's platform.linux_distribution(). Please use distro.id(), distro.version() and distro.name() instead. distroid, , distro_codename = distro.linux_distribution()

abhigenie92 commented 6 months ago

Can you make a pull request. I'd be happy to merge it.

DavidPetrasek commented 6 months ago

Unfortunately, I do not know Python at all so I leave it to someone else. It's not a big issue, because it's working fine.