From 69e1245d184bc6f0c7beb39407deb5cbb39e812b Mon Sep 17 00:00:00 2001 From: Volker Krause Date: Fri, 4 Dec 2020 16:31:57 +0100 Subject: Fix category extraction from desktop files This broke the builds for apps not having categories in their appstream files. --- toolchain/generate-fastlane-metadata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toolchain/generate-fastlane-metadata.py') diff --git a/toolchain/generate-fastlane-metadata.py b/toolchain/generate-fastlane-metadata.py index d1f6da67..53787417 100755 --- a/toolchain/generate-fastlane-metadata.py +++ b/toolchain/generate-fastlane-metadata.py @@ -223,9 +223,9 @@ def processAppstreamData(applicationName, appstreamData, desktopData): if not 'categories' in data and desktopData: # The Python XDG extension/wrapper requires that it be able to read the file itself # To ensure it is able to do this, we transfer the content of the file from the APK out to a temporary file to keep it happy - (fd, path) = tempfile.mkstemp(suffix=name + ".desktop") + (fd, path) = tempfile.mkstemp(suffix=applicationName + ".desktop") handle = open(fd, "wb") - handle.write(desktopFileContents.read()) + handle.write(desktopData) handle.close() # Parse the XDG format *.desktop file, and extract the categories within it desktopFile = xdg.DesktopEntry.DesktopEntry(path) -- cgit v1.2.1