summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2020-02-05 13:54:30 -0800
committerJohn Stebbins <[email protected]>2020-02-05 13:54:30 -0800
commit8cb2ee4ce38276a24f22968381d9a1b7ea65da1c (patch)
tree66f256925eef5e4743c582239649bfcc44b2e2e0
parentd8fff96fa0b7c08578bdd8362e7a557c551d24d1 (diff)
flatpak: make manifest creation script python 3 compatible
-rwxr-xr-xscripts/create_flatpak_manifest.py24
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))