From 663ecd5eb1d3610793f93a72f36a07f0b8adecb0 Mon Sep 17 00:00:00 2001 From: Radostin Stoyanov Date: Tue, 24 Apr 2018 08:42:10 +0100 Subject: Revert "docker-source: Support blobs without .tar ext" This reverts commit 6146e9ab5e36ff894b8c95d00a45db6181ad8472. --- src/virtBootstrap/sources/docker_source.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/virtBootstrap/sources/docker_source.py b/src/virtBootstrap/sources/docker_source.py index 4281f55..715e560 100644 --- a/src/virtBootstrap/sources/docker_source.py +++ b/src/virtBootstrap/sources/docker_source.py @@ -107,11 +107,7 @@ class DockerSource(object): self.checksums.append([sum_type, layer_sum]) # Store checksums # Layers are tar files with hashsum used as name - file_path = os.path.join(self.images_dir, layer_sum) - if not os.path.isfile(file_path): - file_path += '.tar' - if not os.path.isfile(file_path): - raise ValueError('Blob %s does not exist.' % file_path) + file_path = os.path.join(self.images_dir, layer_sum + '.tar') # Store 'file path' and set placeholder for 'size' self.layers.append([file_path, None]) -- cgit