mirror of
https://github.com/keylase/nvidia-patch.git
synced 2025-07-30 11:38:28 -07:00
win: ap: add cache to driver identification routine
This commit is contained in:
parent
c38b472336
commit
a36d883800
1 changed files with 2 additions and 0 deletions
|
@ -8,6 +8,7 @@ import os.path
|
|||
from binascii import unhexlify
|
||||
import xml.etree.ElementTree as ET
|
||||
import itertools
|
||||
import functools
|
||||
|
||||
|
||||
CRLF = b"\x0d\x0a"
|
||||
|
@ -170,6 +171,7 @@ def make_patch(archive, *,
|
|||
return res
|
||||
|
||||
|
||||
@functools.lru_cache(maxsize=None)
|
||||
def identify_driver(archive, *, sevenzip="7z"):
|
||||
manifest = extract_single_file(archive, "setup.cfg", sevenzip=sevenzip)
|
||||
root = ET.fromstring(manifest)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue