Commit 6f10302b authored by Lucas Carvalho's avatar Lucas Carvalho

slapos-buildout should not depend of simplejson.

parent 052fca7c
......@@ -18,7 +18,6 @@ import urllib
import posixpath
import base64
import hashlib
import json
def _get_hash_from_file(path, hash_object):
......@@ -87,7 +86,7 @@ def get_sha256sum_from_networkcached(network_cache, url, logger):
try:
result = urllib.urlopen(network_cached_url)
if int(result.code) == 200:
return json.loads(result.read().strip()).get('sha256sum', None)
return result.read().strip()
logger.info('The url is not cached yet: %s' % url)
except IOError, e:
logger.info('An error occurred to get sha256sum of url %s. %s' % \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment