b4cb0c14ebf600daa5573bc90a419eb24329eb55,api/python/quilt3/packages.py,Package,install,#Any#Any#Any#Any#Any#Any#,315
Before Change
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")
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
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: quiltdata/quilt
Commit Name: b4cb0c14ebf600daa5573bc90a419eb24329eb55
Time: 2019-06-05
Author: aleksey@residentmar.io
File Name: api/python/quilt3/packages.py
Class Name: Package
Method Name: install
Project Name: quiltdata/quilt
Commit Name: 49c8ea8ae46c2eb5a4de5948ccbbd3aef9da088e
Time: 2018-04-17
Author: aeon.descriptor@gmail.com
File Name: compiler/quilt/tools/util.py
Class Name:
Method Name: to_identifier
Project Name: quiltdata/quilt
Commit Name: b4cb0c14ebf600daa5573bc90a419eb24329eb55
Time: 2019-06-05
Author: aleksey@residentmar.io
File Name: api/python/quilt3/packages.py
Class Name: Package
Method Name: push