mirror of
https://git.planet-casio.com/Lephenixnoir/GiteaPC.git
synced 2024-12-28 04:23:40 +01:00
install: allow full specification during fetch
This commit is contained in:
parent
559af6b190
commit
370e01bff1
1 changed files with 3 additions and 2 deletions
|
@ -202,7 +202,7 @@ def fetch(*args, use_ssh=False, use_https=False, force=False, update=False):
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
for arg in args:
|
for arg in args:
|
||||||
s = Spec(arg)
|
s = arg if isinstance(arg, Spec) else Spec(arg)
|
||||||
r = s.resolve()
|
r = s.resolve()
|
||||||
|
|
||||||
# If this is a local repository, just git fetch
|
# If this is a local repository, just git fetch
|
||||||
|
@ -313,11 +313,12 @@ def search_dependencies(names, fetched, plan, **kwargs):
|
||||||
r = s.resolve()
|
r = s.resolve()
|
||||||
|
|
||||||
if r.fullname not in fetched:
|
if r.fullname not in fetched:
|
||||||
fetch(r.fullname, **kwargs)
|
fetch(s, **kwargs)
|
||||||
fetched.add(r.fullname)
|
fetched.add(r.fullname)
|
||||||
# Re-resolve, as a local repository this time
|
# Re-resolve, as a local repository this time
|
||||||
if r.remote:
|
if r.remote:
|
||||||
r = s.resolve(local_only=True)
|
r = s.resolve(local_only=True)
|
||||||
|
|
||||||
# Schedule dependencies before r
|
# Schedule dependencies before r
|
||||||
search_dependencies(r.dependencies(), fetched, plan, **kwargs)
|
search_dependencies(r.dependencies(), fetched, plan, **kwargs)
|
||||||
plan.append(s)
|
plan.append(s)
|
||||||
|
|
Loading…
Reference in a new issue