raise QuiltException("No registry specified and no default remote "
"registry configured. Please specify a registry "
"or configure a default remote registry with quilt.config")
elif registry == "local":
registry = get_from_config("default_local_registry")
if dest_registry is None:
dest_registry = get_from_config("default_local_registry")
pkg = cls.browse(name=name, registry=registry, top_hash=top_hash)
if dest is None:
dest = get_install_location()
return pkg.push(name=name, dest=dest, registry=dest_registry)
@classmethod
def browse(cls, name=None, registry=None, top_hash=None):
After Change
)
if dest is None:
dest = get_install_location().rstrip("/") + "/" + quote(name)
else:
dest_parsed = urlparse(fix_url(dest))
if dest_parsed.scheme != "file":
raise QuiltException(
f"Invalid package destination path {dest!r}. "dest", if set, must point at "
f"the local filesystem. To copy a package to a remote registry use "push" or "
f""build" instead."
)
pkg = cls.browse(name=name, registry=registry, top_hash=top_hash)
dest = fix_url(dest)
message = pkg._meta.get("message", None) // propagate the package message
pkg = pkg._materialize(dest)
pkg.build(name, registry=dest_registry, message=message)
return pkg
@classmethod
def browse(cls, name=None, registry=None, top_hash=None):