mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-09-20 12:07:18 -05:00
actually 'update'
This commit is contained in:
parent
f1a310aee3
commit
4566e2ecbc
1 changed files with 4 additions and 4 deletions
|
@ -51,7 +51,7 @@ from typing import (
|
||||||
Generator,
|
Generator,
|
||||||
)
|
)
|
||||||
|
|
||||||
__version__ = "22.12a3-54-g79d7978-dev"
|
__version__ = "22.12a3-56-ga9d0098-dev"
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
|
@ -851,8 +851,6 @@ class Viv:
|
||||||
)
|
)
|
||||||
|
|
||||||
def _get_sources(self):
|
def _get_sources(self):
|
||||||
# ?: should we check for a `.git` install?
|
|
||||||
|
|
||||||
self.running_source = Path(__file__).resolve()
|
self.running_source = Path(__file__).resolve()
|
||||||
self.local = not str(self.running_source).startswith("/proc/")
|
self.local = not str(self.running_source).startswith("/proc/")
|
||||||
if self.local:
|
if self.local:
|
||||||
|
@ -1014,7 +1012,9 @@ class Viv:
|
||||||
)
|
)
|
||||||
|
|
||||||
if confirm(q):
|
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":
|
elif args.cmd == "install":
|
||||||
if not self.local_source == "NotFound":
|
if not self.local_source == "NotFound":
|
||||||
|
|
Loading…
Reference in a new issue