diff options
author | Radostin Stoyanov <rstoyanov1@gmail.com> | 2017-07-05 14:44:25 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cbosdonnat@suse.com> | 2017-07-05 17:32:34 +0200 |
commit | f23d759eda69738917985feb9af727f792d1145e (patch) | |
tree | 3ab24aa54ea05fca307389a386ac900ed1d86b9e | |
parent | c92cc9d68b535adcae9030f9edd019277fc361b1 (diff) | |
download | virt-bootstrap.git-f23d759eda69738917985feb9af727f792d1145e.tar.gz virt-bootstrap.git-f23d759eda69738917985feb9af727f792d1145e.tar.xz virt-bootstrap.git-f23d759eda69738917985feb9af727f792d1145e.zip |
DockerSource: Ignore short lines from skopeo
Avoid parsing short lines when detecting download progress
from skopeo's output.
-rw-r--r-- | src/virtBootstrap/sources.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/virtBootstrap/sources.py b/src/virtBootstrap/sources.py index beb671a..9432937 100644 --- a/src/virtBootstrap/sources.py +++ b/src/virtBootstrap/sources.py @@ -165,8 +165,8 @@ class DockerSource(object): # Split output into line output = utils.read_async(stdout[0]).strip().split('\n') for line in output: - if line: # is not empty - line_split = line.split() + line_split = line.split() + if len(line_split) > 2: # Avoid short lines if utils.is_new_layer_message(line): current_layer += 1 self.progress("Downloading layer (%s/%s)" |