Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
f6d39f7d
Commit
f6d39f7d
authored
Apr 25, 2013
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use md5digest
parent
0a919d2f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
slapos/grid/slapgrid.py
slapos/grid/slapgrid.py
+2
-3
slapos/grid/utils.py
slapos/grid/utils.py
+1
-0
No files found.
slapos/grid/slapgrid.py
View file @
f6d39f7d
...
...
@@ -30,7 +30,6 @@
import
argparse
import
ConfigParser
from
hashlib
import
md5
import
logging
import
os
import
pkg_resources
...
...
@@ -554,7 +553,7 @@ class Slapgrid(object):
state
=
software_release
.
getState
()
try
:
software_release_uri
=
software_release
.
getURI
()
url_hash
=
md5
(
software_release_uri
).
hexdigest
(
)
url_hash
=
md5
digest
(
software_release_uri
)
software_path
=
os
.
path
.
join
(
self
.
software_root
,
url_hash
)
software
=
Software
(
url
=
software_release_uri
,
software_root
=
self
.
software_root
,
...
...
@@ -580,7 +579,7 @@ class Slapgrid(object):
if
self
.
develop
or
(
not
os
.
path
.
exists
(
completed_tag
)
and
\
len
(
self
.
software_release_filter_list
)
==
0
)
or
\
url_hash
in
self
.
software_release_filter_list
or
\
url_hash
in
(
md5
(
uri
).
hexdigest
(
)
for
uri
in
self
.
software_release_filter_list
):
url_hash
in
(
md5
digest
(
uri
)
for
uri
in
self
.
software_release_filter_list
):
try
:
software_release
.
building
()
except
NotFoundError
:
...
...
slapos/grid/utils.py
View file @
f6d39f7d
...
...
@@ -116,6 +116,7 @@ class SlapPopen(subprocess.Popen):
logger
.
info
(
line
)
self
.
output
=
''
.
join
(
output_lines
)
def
md5digest
(
url
):
return
hashlib
.
md5
(
url
).
hexdigest
()
...
...
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