diff options
author | Jonah BrĂ¼chert <jbb@kaidan.im> | 2022-03-14 02:11:40 +0100 |
---|---|---|
committer | Jonah BrĂ¼chert <jbb@kaidan.im> | 2022-03-15 13:34:27 +0100 |
commit | e96843828d8c3bbd8d63f196cac780108598b1b9 (patch) | |
tree | 7b1ff4f4c46be7704a1fd47f4bf29c5273de475f | |
parent | 14834c8c5b645b1b96165b6e88f5f8775da25ad9 (diff) | |
download | extra-cmake-modules-e96843828d8c3bbd8d63f196cac780108598b1b9.tar.gz extra-cmake-modules-e96843828d8c3bbd8d63f196cac780108598b1b9.tar.bz2 |
generate-fastlane-metadata: Don't fail if source URL can not be found
I hit this issue while building Kaidan using craft,
outside of the KDE Android docker container. Hopefully this is the
correct way to fix it.
-rwxr-xr-x | toolchain/generate-fastlane-metadata.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/toolchain/generate-fastlane-metadata.py b/toolchain/generate-fastlane-metadata.py index 642a76d3..051a231d 100755 --- a/toolchain/generate-fastlane-metadata.py +++ b/toolchain/generate-fastlane-metadata.py @@ -341,9 +341,8 @@ def processAppstreamFile(appstreamFileName, desktopFileName, iconBaseName): if arguments.source and os.path.exists(os.path.join(arguments.source, '.git')): upstream_ref = subprocess.check_output(['git', 'rev-parse', '--symbolic-full-name', '@{u}'], cwd=arguments.source).decode('utf-8') remote = upstream_ref.split('/')[2] - output = subprocess.check_output(['git', 'remote', 'show', '-n', remote], cwd=arguments.source).decode('utf-8') - result = re.search(' Fetch URL: (.*)\n', output) - data['source-repo'] = result.group(1) + output = subprocess.check_output(['git', 'remote', 'get-url', remote], cwd=arguments.source).decode('utf-8') + data['source-repo'] = output.strip() # write meta data createFastlaneFile( applicationName, "title.txt", data['name'] ) |