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

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanek Bevendorff <janek@jbev.net>2017-10-17 15:36:18 +0300
committerJanek Bevendorff <janek@jbev.net>2017-10-19 22:24:31 +0300
commiteb977b8021a997abdb973483ec68ca46ff195e13 (patch)
tree227857a783298a3e8a236b3b1172bfb2db1e4dd5 /release-tool
parentb30eb597911a97d968ebd366f286e21b10b91f30 (diff)
Check AppStream info file before merging releases
Diffstat (limited to 'release-tool')
-rwxr-xr-xrelease-tool30
1 files changed, 21 insertions, 9 deletions
diff --git a/release-tool b/release-tool
index 351630694..c3fa84d3d 100755
--- a/release-tool
+++ b/release-tool
@@ -257,19 +257,18 @@ checkChangeLog() {
grep -qPzo "${RELEASE_NAME} \(\d{4}-\d{2}-\d{2}\)\n=+\n" CHANGELOG
if [ $? -ne 0 ]; then
- exitError "CHANGELOG does not contain any information about the '${RELEASE_NAME}' release!"
+ exitError "'CHANGELOG' has not been updated to the '${RELEASE_NAME}' release!"
fi
}
-checkTransifexCommandExists() {
- command -v tx > /dev/null
- if [ 0 -ne $? ]; then
- exitError "Transifex tool 'tx' not installed! Please install it using 'pip install transifex-client'"
+checkAppStreamInfo() {
+ if [ ! -f share/linux/org.keepassxc.appdata.xml ]; then
+ exitError "No AppStream info file found!"
fi
- command -v lupdate-qt5 > /dev/null
- if [ 0 -ne $? ]; then
- exitError "Qt Linguist tool (lupdate-qt5) is not installed! Please install using 'apt install qttools5-dev-tools'"
+ grep -qPzo "<release version=\"${RELEASE_NAME}\" date=\"\d{4}-\d{2}-\d{2}\">" share/linux/org.keepassxc.appdata.xml
+ if [ $? -ne 0 ]; then
+ exitError "'share/linux/org.keepassxc.appdata.xml' has not been updated to the '${RELEASE_NAME}' release!"
fi
}
@@ -281,7 +280,19 @@ checkSnapcraft() {
grep -qPzo "version: ${RELEASE_NAME}" snapcraft.yaml
if [ $? -ne 0 ]; then
- exitError "snapcraft.yaml has not been updated to the '${RELEASE_NAME}' release!"
+ exitError "'snapcraft.yaml' has not been updated to the '${RELEASE_NAME}' release!"
+ fi
+}
+
+checkTransifexCommandExists() {
+ command -v tx > /dev/null
+ if [ 0 -ne $? ]; then
+ exitError "Transifex tool 'tx' not installed! Please install it using 'pip install transifex-client'"
+ fi
+
+ command -v lupdate-qt5 > /dev/null
+ if [ 0 -ne $? ]; then
+ exitError "Qt Linguist tool (lupdate-qt5) is not installed! Please install using 'apt install qttools5-dev-tools'"
fi
}
@@ -309,6 +320,7 @@ performChecks() {
checkVersionInCMake
checkChangeLog
+ checkAppStreamInfo
checkSnapcraft
logInfo "\e[1m\e[32mAll checks passed!\e[0m"