summaryrefslogtreecommitdiff
path: root/games-util/umu-launcher/files/umu-launcher-1.2.9-optional-delta.patch
blob: 6d0f6d2b7675076e54acf274a9f051d109d14edd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Make umu_delta optional.
--- a/umu/umu_proton.py
+++ b/umu/umu_proton.py
@@ -524,7 +524,10 @@ def _get_delta(
     from cbor2 import CBORDecodeError, dumps, loads  # noqa: PLC0415
 
     # Ignore. umu_delta is relevant for sys packages when using *-Latest tokens
-    from .umu_delta import valid_key, valid_signature  # noqa: PLC0415
+    try:
+        from .umu_delta import valid_key, valid_signature  # noqa: PLC0415
+    except ImportError:
+        return None
 
     try:
         cbor = loads(patch)