diff options
author | Jose Castillo <jcastillo@redhat.com> | 2023-10-18 16:30:11 +0100 |
---|---|---|
committer | Jake Hunsaker <jacob.r.hunsaker@gmail.com> | 2023-11-07 06:21:15 -0800 |
commit | ca2e2939a18f5333304fcdb8d43c76d6808acfb5 (patch) | |
tree | e74085ffd4669a06eddbf83af42b26bd01dc915e | |
parent | bf8af080812f82202f3ed59a2aaf93f5fd52219c (diff) | |
download | sos-ca2e2939a18f5333304fcdb8d43c76d6808acfb5.tar.gz |
[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 <jcastillo@redhat.com>
-rw-r--r-- | sos/policies/package_managers/flatpak.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sos/policies/package_managers/flatpak.py b/sos/policies/package_managers/flatpak.py index 7e171aa5..0d2ae00f 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 : |