fix: finish transition to 'ref'

This commit is contained in:
Daylin Morgan 2023-05-28 17:25:29 -05:00
parent c7bae61706
commit 445a523b83
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

View file

@ -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}")