silence stdout on prune

This commit is contained in:
kjeld Schouten-Lebbing 2022-01-19 19:12:29 +01:00
parent 4da492181f
commit 1064d1e13f
No known key found for this signature in database
GPG Key ID: 4CDAD4A532BC1EDB
2 changed files with 2 additions and 5 deletions

View File

@ -7,7 +7,7 @@ README_MD = open(join(dirname(abspath(__file__)), "README.md")).read()
setup( setup(
name="trueupdate", name="trueupdate",
version="2.1.5", version="2.1.6",
# The packages that constitute your project. # The packages that constitute your project.
# For my project, I have only one - "pydash". # For my project, I have only one - "pydash".

View File

@ -112,10 +112,7 @@ def docker_prune():
if PRUNE: if PRUNE:
print("Pruning old docker images...\n") print("Pruning old docker images...\n")
process = subprocess.Popen(["docker", "image", "prune", "-af"], stdout=subprocess.PIPE) process = subprocess.Popen(["docker", "image", "prune", "-af"], stdout=subprocess.PIPE)
while process.poll() is None: print("Images pruned.\n")
lines = process.stdout.readline()
print (lines)
print (process.stdout.read())
def run(): def run():
process_args() process_args()