Fix me being stupid on my phone

This commit is contained in:
kramo
2023-12-20 15:31:43 +01:00
parent 29da7feba9
commit f8bc23991a
2 changed files with 9 additions and 5 deletions

View File

@@ -2,8 +2,8 @@
ignore=importers
[MESSAGES CONTROL]
[MESSAGES CONTROL]
disable=raw-checker-failed,
bad-inline-option,

View File

@@ -54,10 +54,14 @@ class FlatpakSourceIterable(SourceIterable):
}
)
if not source.locations:
return # TODO: I'm doing this on my phone, I don't even know why this is here lol
generators = set(location.iterdir() for location in (self.source.locations.user_data["applications"], self.source.locations.system_data["applications"]) if location)
generators = set(
location.iterdir()
for location in (
self.source.locations.user_data["applications"],
self.source.locations.system_data["applications"],
)
if location
)
for entry in chain(*generators):
if entry.suffix != ".desktop":