Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2021-03-28 20:59:54 +0300
committerRobert Adam <dev@robert-adam.de>2021-03-28 21:17:24 +0300
commit0c26ff14b5f5329b66eded89a2c66af1ccb230cb (patch)
tree76afaa78dab11414b54673a149b3a234dc03233b /scripts
parent0343d2b002fd85387487fb2625c42174a5a3b9a4 (diff)
FORMAT: Removed CRLF line endings
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/updatetranslations.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/scripts/updatetranslations.py b/scripts/updatetranslations.py
index 5f1f31fc8..57728beb6 100755
--- a/scripts/updatetranslations.py
+++ b/scripts/updatetranslations.py
@@ -29,24 +29,24 @@ def FindLupdate(vcpkg_triplet: Optional[str] = None) -> Optional[str]:
return None
def CheckForGitHasTsFileChanges(tsfiles: list) -> bool:
- res = subprocess.run(['git', 'status', '--porcelain', '--'] + tsfiles, capture_output=True)
+ res = subprocess.run(['git', 'status', '--porcelain', '--'] + tsfiles, capture_output=True)
return res.returncode == 0 and len(res.stdout) > 0
def Commit(tsfiles: list) -> None:
- res = subprocess.run(['git', 'reset', '--mixed'], capture_output=True)
+ res = subprocess.run(['git', 'reset', '--mixed'], capture_output=True)
if res.returncode != 0:
- logging.error('The git reset call returned an error status code %d', res.returncode)
- logging.debug('stdout: %s', res.stdout)
+ logging.error('The git reset call returned an error status code %d', res.returncode)
+ logging.debug('stdout: %s', res.stdout)
exit(1)
- res = subprocess.run(['git', 'add'] + tsfiles, capture_output=True)
+ res = subprocess.run(['git', 'add'] + tsfiles, capture_output=True)
if res.returncode != 0:
- logging.error('The git add call returned an error status code %d', res.returncode)
- logging.debug('stdout: %s', res.stdout)
+ logging.error('The git add call returned an error status code %d', res.returncode)
+ logging.debug('stdout: %s', res.stdout)
exit(1)
- res = subprocess.run(['git', 'commit', '-m', 'TRANSLATION: Update translation files'], capture_output=True)
+ res = subprocess.run(['git', 'commit', '-m', 'TRANSLATION: Update translation files'], capture_output=True)
if res.returncode != 0:
- logging.error('The git commit call returned an error status code %d', res.returncode)
- logging.debug('stdout: %s', res.stdout)
+ logging.error('The git commit call returned an error status code %d', res.returncode)
+ logging.debug('stdout: %s', res.stdout)
exit(1)
def Update(lupdatebin, tsfile: str, debuglupdate: bool, applyHeuristics = True) -> (int, int, int):
@@ -79,7 +79,7 @@ def Update(lupdatebin, tsfile: str, debuglupdate: bool, applyHeuristics = True)
logging.debug('stdout: ' + res.stdout)
exit(1)
p = re.compile('Found (?P<nsrc>[0-9]+) source text\(s\) \((?P<nnew>[0-9]+) new and (?P<nsame>[0-9]+) already existing\)')
- m = p.search(res.stdout.decode('ascii'))
+ m = p.search(res.stdout.decode('ascii'))
logging.debug('Found %s texts where %s new and %s same', m.group('nsrc'), m.group('nnew'), m.group('nsame'))
return (m.group('nsrc'), m.group('nnew'), m.group('nsame'))
@@ -101,7 +101,7 @@ if __name__ == '__main__':
exit(1)
# cd into repository root directory
- os.chdir(os.path.dirname(os.path.abspath(__file__)) + '/..')
+ os.chdir(os.path.dirname(os.path.abspath(__file__)) + '/..')
logging.info('Working in directory %s', os.getcwd())
tsfiles = glob.glob(os.path.join('src', 'mumble', 'mumble_*.ts'))