aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/policies/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sos/policies/__init__.py b/sos/policies/__init__.py
index b1fccb10..11995ff6 100644
--- a/sos/policies/__init__.py
+++ b/sos/policies/__init__.py
@@ -92,6 +92,8 @@ class PackageManager(object):
if self.query_command:
pkg_list = shell_out(self.query_command).splitlines()
for pkg in pkg_list:
+ if '|' not in pkg:
+ continue
name, version = pkg.split("|")
self.packages[name] = {
'name': name,