Skip to content

Commit

Permalink
Merge PR #5803: Backport "MAINT: Fix mumble-build-number.py script"
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzmbrzl authored Aug 14, 2022
2 parents 044dede + d6261d5 commit cc73c76
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/mumble-build-number.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,22 @@

import argparse
import urllib.request
import urllib.parse
import sys

def fetch_build_number(commit = None, version = None, password = None):
if commit is None or version is None:
return None

query = "https://mumble.info/get-build-number?commit=" + commit + "&version=" + version
parameter = {
"commit": commit,
"version": version
}

if not password is None:
query += "&token=" + password
parameter["token"] = password

query = "https://mumble.info/get-build-number?" + urllib.parse.urlencode(parameter)

try:
request = urllib.request.urlopen(query)
Expand Down

0 comments on commit cc73c76

Please sign in to comment.