Fix filtering in unpack_dependencies

This commit is contained in:
Mathieu Comandon 2023-09-06 22:10:11 -07:00
parent e06508566e
commit 56fdb6e0f1

View file

@ -98,7 +98,7 @@ def unpack_dependencies(string: str) -> List[Union[str, tuple]]:
if not string:
return []
return [_expand_dep(dep) for dep in string.split(",") if dep.strip()]
return [dep for dep in [_expand_dep(dep) for dep in string.split(",")] if dep]
def gtk_safe(string: str) -> str: