From 4566e2ecbcfe5e0d38042a0555a9712c80d5c4d3 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Fri, 26 May 2023 15:10:18 -0500 Subject: [PATCH] actually 'update' --- src/viv/viv.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/viv/viv.py b/src/viv/viv.py index 5e3a8b4..44886c3 100755 --- a/src/viv/viv.py +++ b/src/viv/viv.py @@ -51,7 +51,7 @@ from typing import ( Generator, ) -__version__ = "22.12a3-54-g79d7978-dev" +__version__ = "22.12a3-56-ga9d0098-dev" @dataclass @@ -851,8 +851,6 @@ class Viv: ) def _get_sources(self): - # ?: should we check for a `.git` install? - self.running_source = Path(__file__).resolve() self.local = not str(self.running_source).startswith("/proc/") if self.local: @@ -1014,7 +1012,9 @@ class Viv: ) if confirm(q): - print("Holding off on the additions of this piece") + echo(f"updating local source copy of viv at {self.local_source}") + shutil.copy(c.srccache / f"{sha256}.py", self.local_source) + # TODO: check/update the cli elif args.cmd == "install": if not self.local_source == "NotFound":