Skip to content

Commit

Permalink
[flatpak] Capture details about branch
Browse files Browse the repository at this point in the history
Gather details about branch, so it complements
the version number (which can be empty sometimes).

Fixes: #3404

Signed-off-by: Jose Castillo <[email protected]>
  • Loading branch information
jcastill authored and TurboTurtle committed Nov 7, 2023
1 parent bf8af08 commit ca2e293
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sos/policies/package_managers/flatpak.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,15 @@ class FlatpakPackageManager(PackageManager):
"""Package Manager for Flatpak distributions
"""

query_command = 'flatpak list --columns=name,version'
query_command = 'flatpak list --columns=name,version,branch'
query_path_command = ''
files_command = ''
verify_command = ''
verify_filter = ''

def _parse_pkg_list(self, pkg_list):
for line in pkg_list.splitlines():
pkg = line.split()
name, version = pkg[0], pkg[1]
yield (name, version, None)
pkg = line.split("\t")
yield (pkg[0], pkg[1], pkg[2])

# vim: set et ts=4 sw=4 :

0 comments on commit ca2e293

Please sign in to comment.