MCPcopy Create free account
hub / github.com/bitsadmin/wesng / get_last_patch

Function get_last_patch

wes.py:750–756  ·  view source on GitHub ↗
(servicepacks, kb)

Source from the content-addressed store, hash-verified

748
749# Obtain most recent patch tracing back recursively locating records which superseeded the provided record
750def get_last_patch(servicepacks, kb):
751 results = list(filter(lambda c: c['Supersedes'] == kb['BulletinKB'], servicepacks))
752
753 if results:
754 return get_last_patch(servicepacks, results[0])
755 else:
756 return kb
757
758
759# Show summary at the end of results containing the number of patches and the most recent patch installed

Callers 1

get_patches_servicepacksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected