summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2023-01-20 09:05:44 +0000
committerAlexandre Flament <alex@al-f.net>2023-01-20 09:05:44 +0000
commit0515f2974bab108fa31382ddbe3593c73e3bd177 (patch)
tree67883088fe2aace006e1ae679c5a566ece323eb7
parent6d72ef3cbec5246fd52498932760ea2f975a3112 (diff)
downloadsearxng-0515f2974bab108fa31382ddbe3593c73e3bd177.tar.gz
searxng-0515f2974bab108fa31382ddbe3593c73e3bd177.zip
Version number follows PEP440 : replace - by +
Close #2111
-rw-r--r--searx/version.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/version.py b/searx/version.py
index cefdb7a43..3df6f459e 100644
--- a/searx/version.py
+++ b/searx/version.py
@@ -59,7 +59,7 @@ def get_git_url_and_branch():
def get_git_version():
- git_commit_date_hash = subprocess_run(r"git show -s --date='format:%Y.%m.%d' --format='%cd-%h'")
+ git_commit_date_hash = subprocess_run(r"git show -s --date='format:%Y.%m.%d' --format='%cd+%h'")
tag_version = git_version = git_commit_date_hash
# add "-dirty" suffix if there are uncommited changes except searx/settings.yml
@@ -67,7 +67,7 @@ def get_git_version():
subprocess_run("git diff --quiet -- . ':!searx/settings.yml' ':!utils/brand.env'")
except subprocess.CalledProcessError as e:
if e.returncode == 1:
- git_version += "-dirty"
+ git_version += "+dirty"
else:
logger.warning('"%s" returns an unexpected return code %i', e.returncode, e.cmd)
return git_version, tag_version