Skip to content

Commit

Permalink
make_translation.py: fix extra tabulation
Browse files Browse the repository at this point in the history
  • Loading branch information
ia committed Jul 8, 2023
1 parent dff3527 commit 7304c0e
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions Translations/make_translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1281,25 +1281,26 @@ def get_version_suffix(ver) -> str:
else:
# ... otherwise it's tagged but not a release version!
suffix = "T"
elif branch:
# _Hardcoded_ current main development branch
if "dev" == branch:
suffix = "D"
else:
suffix = "B"
elif branch and "" != branch:
# _Hardcoded_ current main development branch...
if "dev" == branch:
suffix = "D"
# ... or some other branch
else:
suffix = "B"
else:
# something else but from Git
# Something else but from Git
suffix = "G"
# attach SHA commit anyway
# Attach SHA commit to ID a build since it's from git anyway
suffix += "." + sha_id
except subprocess.CalledProcessError:
# no git tree so _probably_ Homebrew build from source
# No git tree so _probably_ Homebrew build from source
suffix = "H"
except OSError:
# something _special_?
# Something _special_?
suffix = "S"
if "" == suffix:
# something _very_ special!
# Something _very_ special!
suffix = "V"
return suffix

Expand Down

0 comments on commit 7304c0e

Please sign in to comment.