Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
105
Merge Requests
105
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
f809c558
Commit
f809c558
authored
Sep 27, 2021
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix "stack/caucase: Fix md5 change detection"
Make the md5 detection fix python3 compatible. Fixes
4e5a9ee4
parent
3c52286b
Pipeline
#17539
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
stack/caucase/buildout.hash.cfg
stack/caucase/buildout.hash.cfg
+1
-1
stack/caucase/caucase.jinja2.library
stack/caucase/caucase.jinja2.library
+1
-1
No files found.
stack/caucase/buildout.hash.cfg
View file @
f809c558
...
@@ -15,4 +15,4 @@
...
@@ -15,4 +15,4 @@
[caucase-jinja2-library]
[caucase-jinja2-library]
filename = caucase.jinja2.library
filename = caucase.jinja2.library
md5sum =
b3ee1414719f8a24790ae324ca023066
md5sum =
a5c7a46c6fb85aa22a371d9d2cd9e57e
stack/caucase/caucase.jinja2.library
View file @
f809c558
...
@@ -133,7 +133,7 @@ recipe = plone.recipe.command
...
@@ -133,7 +133,7 @@ recipe = plone.recipe.command
checksum-file = '{{ template }}.md5'
checksum-file = '{{ template }}.md5'
command =
command =
set -e
set -e
md5_current=$(${buildout:executable} -c "
import hashlib ; print hashlib.md5(open('{{ template }}', 'rb').read()).hexdigest(
)")
md5_current=$(${buildout:executable} -c "
from __future__ import print_function ; import hashlib ; print(hashlib.md5(open('{{ template }}', 'rb').read()).hexdigest()
)")
md5_old=$([ -f ${:checksum-file} ] && cat ${:checksum-file} || echo none)
md5_old=$([ -f ${:checksum-file} ] && cat ${:checksum-file} || echo none)
if [ "$md5_current" != "$md5_old" ] || [ ! -f '{{ csr }}' ] || [ ! -f '{{ key }}' ] ; then
if [ "$md5_current" != "$md5_old" ] || [ ! -f '{{ csr }}' ] || [ ! -f '{{ key }}' ] ; then
'{{ buildout_bin_directory }}/caucase-rerequest' --template '{{ template }}' --csr '{{ csr }}' --key '{{ key }}'
'{{ buildout_bin_directory }}/caucase-rerequest' --template '{{ template }}' --csr '{{ csr }}' --key '{{ key }}'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment