pop-os / distinst

Installer Backend
GNU Lesser General Public License v3.0
221 stars 43 forks source link

Fix parsing of "ubuntu-drivers list --recommended" output #321

Closed jlnr closed 1 year ago

jlnr commented 1 year ago

Follow-up to #320, based on discussion here https://github.com/elementary/os/issues/686#issuecomment-1710730849

"ubuntu-drivers" uses different separators when passing the "--recommended" flag, so the current split(",") breaks when more than one package name is being returned. This PR adjusts the code so that multi-package and multi-line output can both be parsed correctly.