mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-11-09 19:13:14 -06:00
fix: finish transition to 'ref'
This commit is contained in:
parent
c7bae61706
commit
445a523b83
1 changed files with 3 additions and 3 deletions
|
@ -1094,12 +1094,12 @@ class Viv:
|
||||||
+ " shouldn't be used with a git-based installation",
|
+ " shouldn't be used with a git-based installation",
|
||||||
1,
|
1,
|
||||||
)
|
)
|
||||||
sha256 = fetch_source(args.reference)
|
sha256 = fetch_source(args.ref)
|
||||||
sys.path.append(str(c.srccache))
|
sys.path.append(str(c.srccache))
|
||||||
next_version = __import__(sha256).__version__
|
next_version = __import__(sha256).__version__
|
||||||
|
|
||||||
if self.local_version == next_version:
|
if self.local_version == next_version:
|
||||||
echo(f"no change between {args.reference} and local version")
|
echo(f"no change between {args.ref} and local version")
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
if confirm(
|
if confirm(
|
||||||
|
@ -1130,7 +1130,7 @@ class Viv:
|
||||||
)
|
)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
sha256 = fetch_source(args.reference)
|
sha256 = fetch_source(args.ref)
|
||||||
sys.path.append(str(c.srccache))
|
sys.path.append(str(c.srccache))
|
||||||
downloaded_version = __import__(sha256).__version__
|
downloaded_version = __import__(sha256).__version__
|
||||||
echo(f"Downloaded version: {downloaded_version}")
|
echo(f"Downloaded version: {downloaded_version}")
|
||||||
|
|
Loading…
Reference in a new issue