summaryrefslogtreecommitdiff
path: root/bin/update/get_update_channel.py
diff options
context:
space:
mode:
authorLukas <lukasmolleman@gmail.com>2022-04-20 19:54:39 +0200
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2022-06-22 14:07:19 +0200
commit157298bb808a943616991927f9370a86c1f2ca48 (patch)
treea0ea376a0ce971e917df43af8e6e676038797c1c /bin/update/get_update_channel.py
parent4e9b23cb2356cf7019a6ed81e08abf1664a72051 (diff)
android and bin/update: make pythonic
Change-Id: Iaf791bfa8d9822843b26f2a2f2c3d94c55a60a0b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133358 Reviewed-by: Arkadiy Illarionov <qarkai@gmail.com> Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'bin/update/get_update_channel.py')
-rwxr-xr-xbin/update/get_update_channel.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/update/get_update_channel.py b/bin/update/get_update_channel.py
index f94507d64587..4215f8054b10 100755
--- a/bin/update/get_update_channel.py
+++ b/bin/update/get_update_channel.py
@@ -9,6 +9,7 @@
import sys
from config import parse_config
+
def main():
if len(sys.argv) < 2:
sys.exit(1)
@@ -17,6 +18,7 @@ def main():
config = parse_config(update_config)
print(config.channel)
+
if __name__ == "__main__":
main()