diff options
author | Volker Krause <vkrause@kde.org> | 2020-12-04 16:31:57 +0100 |
---|---|---|
committer | Volker Krause <vkrause@kde.org> | 2020-12-04 16:31:57 +0100 |
commit | 69e1245d184bc6f0c7beb39407deb5cbb39e812b (patch) | |
tree | c8dd8627ae87c0ef4fdd1d518f8d8ff9cf705c19 /toolchain | |
parent | 884381e9800ef6e74f37648362493c94b131b151 (diff) | |
download | extra-cmake-modules-69e1245d184bc6f0c7beb39407deb5cbb39e812b.tar.gz extra-cmake-modules-69e1245d184bc6f0c7beb39407deb5cbb39e812b.tar.bz2 |
Fix category extraction from desktop files
This broke the builds for apps not having categories in their appstream
files.
Diffstat (limited to 'toolchain')
-rwxr-xr-x | toolchain/generate-fastlane-metadata.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |