We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aac7a90 commit 4eb5d1cCopy full SHA for 4eb5d1c
repos/system_upgrade/cloudlinux/actors/clearpackageconflicts/libraries/clearpackageconflicts.py
@@ -1,6 +1,5 @@
1
import os
2
import errno
3
-from re import L
4
import shutil
5
6
from leapp.libraries.stdlib import api
@@ -80,5 +79,12 @@ def lua_cjson_handle(package_lookup):
80
79
81
82
def process():
83
- rpm_lookup = {rpm.name for rpm in api.consume(InstalledRPM)}
+ rpm_lookup = set()
+ # Each InstalledRPM is a list of RPM objects.
84
+ # There's a bunch of other fields, but all that we're interested in here is their names.
85
+ installed_rpm_messages = api.consume(InstalledRPM)
86
+ for rpm_list in installed_rpm_messages:
87
+ rpm_names = [item.name for item in rpm_list.items]
88
+ rpm_lookup.update(rpm_names)
89
+
90
alt_python37_handle(rpm_lookup)
0 commit comments