actually 'update'

This commit is contained in:
Daylin Morgan 2023-05-26 15:10:18 -05:00
parent f1a310aee3
commit 4566e2ecbc
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

View file

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