Andy-Python-Programmer / aero

Aero is a new modern, experimental, UNIX-like operating system following the monolithic kernel design. Supporting modern PC features such as long mode, 5-level paging, and SMP (multicore), to name a few.
https://aero.andypy.dev
GNU General Public License v3.0
1.17k stars 50 forks source link

Improve package manager detection #102

Closed Lynndox closed 1 year ago

Lynndox commented 1 year ago

Check for existence of apt/pacman rather than relying on /etc/os-release, which can be problematic (https://github.com/Andy-Python-Programmer/aero/issues/101#issuecomment-1514060054)

Andy-Python-Programmer commented 1 year ago

Thanks @Lynndox!

MolassesLover commented 1 year ago

I think what would make more sense is to check for the operating system, distribution, and package manager. That way dependencies can be properly determined. You can run into very common issues if you don't do this, such as Debian trying to install packages only available in Ubuntu's repositories, or vice-versa.

The distro Python module is really good for this.