From 7b5d4adb7e88ff2f84c7cac0256950db29b04050 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Thu, 10 Aug 2023 11:39:13 -0500 Subject: [PATCH] fix: actually use size in cache info --- src/viv/viv.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/viv/viv.py b/src/viv/viv.py index 11beff0..68839e5 100755 --- a/src/viv/viv.py +++ b/src/viv/viv.py @@ -55,7 +55,7 @@ from typing import ( from urllib.error import HTTPError from urllib.request import urlopen -__version__ = "23.8a3-15-gfaca36d-dev" +__version__ = "23.8a3-16-gcbef848-dev" class Spinner: @@ -1474,7 +1474,8 @@ class Viv: if not metadata_file.is_file(): err_quit(f"Unable to find metadata for vivenv: {vivenv_id}") - + if size: + vivenv.get_size() if use_json: sys.stdout.write(json.dumps(vivenv.meta.__dict__)) elif path: