Workaround hard to parse $'' strings

Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2024-03-03 00:05:12 +02:00
parent e9fd94e1a5
commit b2cd013b09
No known key found for this signature in database
GPG Key ID: A12750536B5E7010

View File

@ -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)