Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapcache
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapcache
Commits
c3205f21
Commit
c3205f21
authored
May 31, 2021
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Plain Diff
hFix/readability
See merge request
!4
parents
6b59491b
fd5114d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
slapcache/signature.py
slapcache/signature.py
+11
-6
No files found.
slapcache/signature.py
View file @
c3205f21
...
...
@@ -241,12 +241,17 @@ class Signature:
'token'
:
''
.
join
([
choice
(
ascii_lowercase
)
for
_
in
range
(
128
)])
}
try
:
if
shacache
.
upload
(
path
=
path
,
metadata_dict
=
metadata_dict
):
self
.
log
(
'Uploaded %s to cache (using %s key).'
,
path
,
shacache
.
directory_key
)
if
shacache
.
upload
(
path
=
sha256path
,
metadata_dict
=
metadata_dict
,
is_sha256file
=
True
):
self
.
log
(
'Uploaded %s to cache (using %s key).'
,
sha256path
,
shacache
.
directory_key
)
sha512sum
=
shacache
.
upload
(
path
=
path
,
metadata_dict
=
metadata_dict
)
if
sha512sum
:
self
.
log
(
'Uploaded %s to cache (using %s key) with SHA512 %s.'
,
path
,
shacache
.
directory_key
,
sha512sum
)
sha512sum_path
=
shacache
.
upload
(
path
=
sha256path
,
metadata_dict
=
metadata_dict
,
is_sha256file
=
True
)
if
sha512sum_path
:
self
.
log
(
'Uploaded %s to cache (using %s key) with SHA512 %s.'
,
sha256path
,
shacache
.
directory_key
,
sha512sum_path
)
else
:
self
.
log
(
'Fail to upload sha256file file to cache.'
)
else
:
...
...
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