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":