summaryrefslogtreecommitdiffstats
path: root/src/virtBootstrap/utils.py
diff options
context:
space:
mode:
authorRadostin Stoyanov <rstoyanov1@gmail.com>2017-08-26 21:42:13 +0100
committerRadostin Stoyanov <rstoyanov1@gmail.com>2017-08-28 17:02:00 +0100
commitc675dbbab6193b7031d4edcb3aff3b7ecd5727a6 (patch)
treeda4fde16497bc2f78d0cb4ee3cb8520eec04fa8e /src/virtBootstrap/utils.py
parent409a342513f3a6c752786dfd3a8a2e8bbb0a9912 (diff)
downloadvirt-bootstrap.git-c675dbbab6193b7031d4edcb3aff3b7ecd5727a6.tar.gz
virt-bootstrap.git-c675dbbab6193b7031d4edcb3aff3b7ecd5727a6.tar.xz
virt-bootstrap.git-c675dbbab6193b7031d4edcb3aff3b7ecd5727a6.zip
Update doc strings
These documentation can be seen using: $ pydoc virtBootstrap
Diffstat (limited to 'src/virtBootstrap/utils.py')
-rw-r--r--src/virtBootstrap/utils.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/virtBootstrap/utils.py b/src/virtBootstrap/utils.py
index ac9e4ec..3fb10a7 100644
--- a/src/virtBootstrap/utils.py
+++ b/src/virtBootstrap/utils.py
@@ -335,7 +335,7 @@ def untar_layers(layers_list, dest_dir, progress):
def get_mime_type(path):
"""
- Get the mime type of a file.
+ Get the mime type of a file.
"""
proc = subprocess.Popen(
["/usr/bin/file", "--mime-type", path],
@@ -389,10 +389,6 @@ def is_new_layer_message(line):
"""
Return T/F whether a line in skopeo's progress is indicating
start the process of new image layer.
-
- Reference:
- - https://github.com/containers/image/blob/master/copy/copy.go#L464
- - https://github.com/containers/image/blob/master/copy/copy.go#L459
"""
return line.startswith('Copying blob') or line.startswith('Skipping fetch')
@@ -401,9 +397,6 @@ def is_layer_config_message(line):
"""
Return T/F indicating whether the message from skopeo copies the manifest
file.
-
- Reference:
- - https://github.com/containers/image/blob/master/copy/copy.go#L414
"""
return line.startswith('Copying config')