Skip to content

Commit 9b553b1

Browse files
committed
fixing bug
1 parent 292f91d commit 9b553b1

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

examples/reproducibility/generate_image_hash.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,4 @@
5151
# binary file and not contents inside.
5252

5353
file_hash = get_image_file_hash(image_path)
54-
# '13775a83962ae60744d691eb7f7fd1e96599e656'
55-
54+
# e'13775a83962ae60744d691eb7f7fd1e96599e656'

examples/singularity_hub/compare_builds.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,6 @@ def get_top_os(x):
8686
# Here we will download the same image 10 times, create a sha1 sum of the files,
8787
# and determine which sets of files should be consistent for the same image file
8888

89-
5665
90-
5673
91-
9289

9390
# Question 2: What files are consistent across the same image, different downloads?
9491
# LEVEL REPLICATE

singularity/hub/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
'''
88

99
from singularity.hub.utils import (
10-
download_stream_atomically,
10+
download_atomically,
1111
parse_container_name,
1212
is_number,
1313
api_get,
@@ -66,7 +66,7 @@ def download_image(manifest,download_folder=None,extract=True,name=None):
6666
if download_folder is not None:
6767
image_file = "%s/%s" %(download_folder,image_file)
6868
url = manifest['image']
69-
image_file = download_stream_atomically(url,file_name=image_file)
69+
image_file = download_atomically(url,file_name=image_file)
7070
if extract == True:
7171
print("Decompressing %s" %image_file)
7272
os.system('gzip -d -f %s' %(image_file))

0 commit comments

Comments
 (0)