From 340ed413e37c5840f521d9f20d7ea5b6c7282863 Mon Sep 17 00:00:00 2001 From: Jose Castillo Date: Wed, 18 Oct 2023 16:30:11 +0100 Subject: [PATCH] [flatpak] Capture details about branch Gather details about branch, so it complements the version number (which can be empty sometimes). Fixes: #3404 Signed-off-by: Jose Castillo --- sos/policies/package_managers/flatpak.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sos/policies/package_managers/flatpak.py b/sos/policies/package_managers/flatpak.py index 7e171aa5df..0d2ae00f17 100644 --- a/sos/policies/package_managers/flatpak.py +++ b/sos/policies/package_managers/flatpak.py @@ -15,7 +15,7 @@ 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 = '' @@ -23,8 +23,7 @@ class FlatpakPackageManager(PackageManager): 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 :