fix path resolution for mirror packages, especially with dependency fetching
This commit is contained in:
parent
786f4cd2c2
commit
281a869ef6
@ -136,6 +136,7 @@ def mirror_create(args):
|
|||||||
if args.dependencies:
|
if args.dependencies:
|
||||||
new_specs = set()
|
new_specs = set()
|
||||||
for spec in specs:
|
for spec in specs:
|
||||||
|
spec.concretize()
|
||||||
for s in spec.traverse():
|
for s in spec.traverse():
|
||||||
new_specs.add(s)
|
new_specs.add(s)
|
||||||
specs = list(new_specs)
|
specs = list(new_specs)
|
||||||
|
@ -146,7 +146,7 @@ def create(path, specs, **kwargs):
|
|||||||
stage = None
|
stage = None
|
||||||
try:
|
try:
|
||||||
# create a subdirectory for the current package@version
|
# create a subdirectory for the current package@version
|
||||||
archive_path = os.path.abspath(join_path(path, mirror_archive_path(spec)))
|
archive_path = os.path.abspath(join_path(mirror_root, mirror_archive_path(spec)))
|
||||||
subdir = os.path.dirname(archive_path)
|
subdir = os.path.dirname(archive_path)
|
||||||
mkdirp(subdir)
|
mkdirp(subdir)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user