mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-23 13:11:12 -05:00
Enhance lupdate-qt5 check
This commit is contained in:
parent
eb977b8021
commit
d3208bddb0
@ -289,11 +289,16 @@ checkTransifexCommandExists() {
|
|||||||
if [ 0 -ne $? ]; then
|
if [ 0 -ne $? ]; then
|
||||||
exitError "Transifex tool 'tx' not installed! Please install it using 'pip install transifex-client'"
|
exitError "Transifex tool 'tx' not installed! Please install it using 'pip install transifex-client'"
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
checkQt5LUpdateExists() {
|
||||||
|
command -v lupdate > /dev/null
|
||||||
|
if [ 0 -eq $? ] && ! $(lupdate -version | grep -q "lupdate version 5\."); then
|
||||||
command -v lupdate-qt5 > /dev/null
|
command -v lupdate-qt5 > /dev/null
|
||||||
if [ 0 -ne $? ]; then
|
if [ 0 -ne $? ]; then
|
||||||
exitError "Qt Linguist tool (lupdate-qt5) is not installed! Please install using 'apt install qttools5-dev-tools'"
|
exitError "Qt Linguist tool (lupdate-qt5) is not installed! Please install using 'apt install qttools5-dev-tools'"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
performChecks() {
|
performChecks() {
|
||||||
@ -307,6 +312,7 @@ performChecks() {
|
|||||||
logInfo "Validating toolset and repository..."
|
logInfo "Validating toolset and repository..."
|
||||||
|
|
||||||
checkTransifexCommandExists
|
checkTransifexCommandExists
|
||||||
|
checkQt5LUpdateExists
|
||||||
checkGitRepository
|
checkGitRepository
|
||||||
checkReleaseDoesNotExist
|
checkReleaseDoesNotExist
|
||||||
checkWorkingTreeClean
|
checkWorkingTreeClean
|
||||||
|
Loading…
Reference in New Issue
Block a user