From b2cd013b091f990e139b6ec3b53db92e7d678eea Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Sun, 3 Mar 2024 00:05:12 +0200 Subject: [PATCH] Workaround hard to parse $'' strings Signed-off-by: Alfred Wingate --- src/euscan/scan.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/euscan/scan.py b/src/euscan/scan.py index 2d44f06..1e26d8a 100644 --- a/src/euscan/scan.py +++ b/src/euscan/scan.py @@ -153,6 +153,9 @@ def scan_upstream(query, on_progress=None): else: uris = pkg.environment("SRC_URI") + # Roundabout way to handle $'' strings + uris = uris.encode("raw_unicode_escape").decode("unicode_escape") + cpv = pkg.cpv uris = parse_src_uri(uris)