(servicepacks, kb)
| 748 | |
| 749 | # Obtain most recent patch tracing back recursively locating records which superseeded the provided record |
| 750 | def 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 |
no outgoing calls
no test coverage detected