mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-31 10:37:13 +02:00
Do not skip fixed packages with custom requirements
This commit is contained in:
@ -556,8 +556,8 @@ class BasePkgManager(PkgRepoMixin, PkgInstallerMixin):
|
|||||||
assert isdir(pkg_dir)
|
assert isdir(pkg_dir)
|
||||||
latest = None
|
latest = None
|
||||||
manifest = self.load_manifest(pkg_dir)
|
manifest = self.load_manifest(pkg_dir)
|
||||||
# skip a fixed package to a specific version
|
# skip fixed package to a specific version
|
||||||
if "@" in pkg_dir and "__src_url" not in manifest:
|
if "@" in pkg_dir and "__src_url" not in manifest and not requirements:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if "__src_url" in manifest:
|
if "__src_url" in manifest:
|
||||||
@ -721,7 +721,7 @@ class BasePkgManager(PkgRepoMixin, PkgInstallerMixin):
|
|||||||
elif latest is False:
|
elif latest is False:
|
||||||
click.echo("[%s]" % (click.style("Up-to-date", fg="green")))
|
click.echo("[%s]" % (click.style("Up-to-date", fg="green")))
|
||||||
else:
|
else:
|
||||||
click.echo("[%s]" % (click.style("Skip", fg="yellow")))
|
click.echo("[%s]" % (click.style("Fixed", fg="yellow")))
|
||||||
|
|
||||||
if only_check or not latest:
|
if only_check or not latest:
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user