[pitivi] flatpak: Consistent prefixes for the app name
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] flatpak: Consistent prefixes for the app name
- Date: Tue, 2 Aug 2016 20:23:22 +0000 (UTC)
commit 63e9bde276eafa70133afe94b90e9c646716c940
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Tue Aug 2 22:22:43 2016 +0200
flatpak: Consistent prefixes for the app name
build/flatpak/json-template-expander | 21 ++++++++++++++-------
build/flatpak/pitivi.template.json | 1 -
2 files changed, 14 insertions(+), 8 deletions(-)
---
diff --git a/build/flatpak/json-template-expander b/build/flatpak/json-template-expander
index dde85fd..c52649d 100755
--- a/build/flatpak/json-template-expander
+++ b/build/flatpak/json-template-expander
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
+"""Script for creating a Flatpak manifest out of a template."""
+# pylint: disable=invalid-name
import json
import os
@@ -6,11 +8,8 @@ import subprocess
import sys
-if __name__ == "__main__":
- if len(sys.argv) != 5:
- print("call with: %s <template_file> <outfile> <basedir> <gst-version> <branchname>" %
- sys.argv[0])
-
+def generate():
+ """Creates the manifest file."""
basedir = sys.argv[3]
gst_version = sys.argv[4]
branchname = sys.argv[5]
@@ -20,9 +19,9 @@ if __name__ == "__main__":
if branchname == "stable":
del template["desktop-file-name-prefix"]
elif branchname == "master":
- template["desktop-file-name-prefix"] = "(Rolling)"
+ template["desktop-file-name-prefix"] = "(Rolling) "
else:
- template["desktop-file-name-prefix"] = branchname
+ template["desktop-file-name-prefix"] = "(%s) " % branchname
print("-> Generating %s against GStreamer %s" % (sys.argv[2], gst_version))
@@ -54,3 +53,11 @@ if __name__ == "__main__":
with open(sys.argv[2], "w") as of:
print(json.dumps(template, indent=4), file=of)
+
+if __name__ == "__main__":
+ if len(sys.argv) != 5:
+ print("call with: %s <template_file> <outfile> <basedir> <gst-version> <branchname>" %
+ sys.argv[0])
+ exit(1)
+
+ generate()
diff --git a/build/flatpak/pitivi.template.json b/build/flatpak/pitivi.template.json
index 5d93320..205a376 100644
--- a/build/flatpak/pitivi.template.json
+++ b/build/flatpak/pitivi.template.json
@@ -11,7 +11,6 @@
"rename-appdata-file": "pitivi.appdata.xml",
"rename-desktop-file": "pitivi.desktop",
"rename-icon": "pitivi",
- "desktop-file-name-prefix": "(Daily) ",
"copy-icon": true,
"build-options" : {
"cflags": "-O0 -g",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]