diff options
author | John Stebbins <[email protected]> | 2020-02-05 13:54:30 -0800 |
---|---|---|
committer | John Stebbins <[email protected]> | 2020-02-05 13:55:39 -0800 |
commit | 08b679724bdf340353d9196bd930858f8f905b2b (patch) | |
tree | 4d6d8df8482113de4028c2793444af7c221eda70 /scripts | |
parent | 1507e1964b4fa927a82900924305e1d6f95d49c2 (diff) |
flatpak: make manifest creation script python 3 compatible
(cherry picked from commit 8cb2ee4ce38276a24f22968381d9a1b7ea65da1c)
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/create_flatpak_manifest.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/scripts/create_flatpak_manifest.py b/scripts/create_flatpak_manifest.py index b119bd9b7..5115a4771 100755 --- a/scripts/create_flatpak_manifest.py +++ b/scripts/create_flatpak_manifest.py @@ -88,7 +88,7 @@ class FlatpakManifest: if value.entry_type == SourceType.archive: if handbrake_found: - print "Error: only one archive source permitted" + print("Error: only one archive source permitted") sys.exit(3) source["type"] = "archive" @@ -104,15 +104,15 @@ class FlatpakManifest: def usage(): - print "create_flatpak_manifest [-a <archive>] [-c <contrib>] [-s <sha265>] [-t <template>] [-r <sdk-runtime-version] [-h] [<dst>]" - print " -a --archive - Main archive (a.k.a. HB sources)" - print " -c --contrib - Contrib download URL (can be repeated)" - print " -s --sha256 - sha256 of previous file on command line" - print " -t --template - Flatpak manifest template" - print " -r --runtime - Flatpak SDK runtime version" - print " -q --qsv - Build with Intel QSV support" - print " -p --plugin - Manifest if for a HandBrake flatpak plugin" - print " -h --help - Show this message" + print("create_flatpak_manifest [-a <archive>] [-c <contrib>] [-s <sha265>] [-t <template>] [-r <sdk-runtime-version] [-h] [<dst>]") + print(" -a --archive - Main archive (a.k.a. HB sources)") + print(" -c --contrib - Contrib download URL (can be repeated)") + print(" -s --sha256 - sha256 of previous file on command line") + print(" -t --template - Flatpak manifest template") + print(" -r --runtime - Flatpak SDK runtime version") + print(" -q --qsv - Build with Intel QSV support") + print(" -p --plugin - Manifest if for a HandBrake flatpak plugin") + print(" -h --help - Show this message") if __name__ == "__main__": try: @@ -120,7 +120,7 @@ if __name__ == "__main__": ["archive=", "contrib=", "sha265=", "template=", "runtime=", "qsv", "plugin", "help"]) except getopt.GetoptError: - print "Error: Invalid option" + print("Error: Invalid option") usage() sys.exit(2) @@ -175,5 +175,5 @@ if __name__ == "__main__": with open(dst, 'w') as fp: json.dump(manifest.manifest, fp, ensure_ascii=False, indent=4) else: - print json.dumps(manifest.manifest, ensure_ascii=False, indent=4) + print(json.dumps(manifest.manifest, ensure_ascii=False, indent=4)) |