seems new openldap / libldap.so.2 doesnt have EVP_md2 dependency so check for it before trying to remove it

This commit is contained in:
Josh Patterson
2025-06-05 15:57:56 -04:00
parent 2ef89be67d
commit d9fb79403b

View File

@@ -21,7 +21,9 @@ uname = 'salt'
gname = 'salt' gname = 'salt'
lib = lief.parse(str(src_lib)) lib = lief.parse(str(src_lib))
sym = next(i for i in lib.imported_symbols if i.name == 'EVP_md2')
sym = next((i for i in lib.imported_symbols if i.name == 'EVP_md2'), None)
if sym: if sym:
# Get the Salt services from DBus. # Get the Salt services from DBus.
sysbus = dbus.SystemBus() sysbus = dbus.SystemBus()
@@ -71,5 +73,7 @@ if sym:
if svcs: if svcs:
for sn in svcs: for sn in svcs:
mgr.RestartUnit(sn, 'replace') mgr.RestartUnit(sn, 'replace')
else:
print('No EVP_md2 symbol found in the library. No modifications needed.')
print('Done.') print('Done.')