parent
2800f392d9
commit
c66ca7f2bc
|
@ -1,6 +1,6 @@
|
||||||
# vim: se sw=2:
|
# vim: se sw=2:
|
||||||
# MIT licensed
|
# MIT licensed
|
||||||
# Copyright (c) 2013-2020 lilydjwg <lilydjwg@gmail.com>, et al.
|
# Copyright (c) 2013-2024 lilydjwg <lilydjwg@gmail.com>, et al.
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import argparse
|
import argparse
|
||||||
|
@ -10,6 +10,7 @@ import json
|
||||||
import os.path
|
import os.path
|
||||||
|
|
||||||
from . import core
|
from . import core
|
||||||
|
from .util import RichResult
|
||||||
|
|
||||||
logger = structlog.get_logger(logger_name=__name__)
|
logger = structlog.get_logger(logger_name=__name__)
|
||||||
|
|
||||||
|
@ -44,10 +45,11 @@ def take() -> None:
|
||||||
if args.all:
|
if args.all:
|
||||||
oldvers.update(newvers)
|
oldvers.update(newvers)
|
||||||
else:
|
else:
|
||||||
|
name: str
|
||||||
for name in args.names:
|
for name in args.names:
|
||||||
if "=" in name:
|
if "=" in name:
|
||||||
name, newver = name.split("=")
|
name, newver = name.split("=")
|
||||||
oldvers[name] = newver
|
oldvers[name] = RichResult(version=newver)
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
oldvers[name] = newvers[name]
|
oldvers[name] = newvers[name]
|
||||||
|
|
Loading…
Reference in New Issue