mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Rename "fixed" to "detached" for LDF
This commit is contained in:
2
docs
2
docs
Submodule docs updated: a85f7c4b79...d03e861940
@ -628,7 +628,7 @@ class BasePkgManager(PkgRepoMixin, PkgInstallerMixin):
|
|||||||
def outdated(self, pkg_dir, requirements=None):
|
def outdated(self, pkg_dir, requirements=None):
|
||||||
"""
|
"""
|
||||||
Has 3 different results:
|
Has 3 different results:
|
||||||
`None` - unknown package, VCS is fixed to commit
|
`None` - unknown package, VCS is detached to commit
|
||||||
`False` - package is up-to-date
|
`False` - package is up-to-date
|
||||||
`String` - a found latest version
|
`String` - a found latest version
|
||||||
"""
|
"""
|
||||||
@ -636,7 +636,7 @@ class BasePkgManager(PkgRepoMixin, PkgInstallerMixin):
|
|||||||
return None
|
return None
|
||||||
latest = None
|
latest = None
|
||||||
manifest = self.load_manifest(pkg_dir)
|
manifest = self.load_manifest(pkg_dir)
|
||||||
# skip fixed package to a specific version
|
# skip detached package to a specific version
|
||||||
if "@" in pkg_dir and "__src_url" not in manifest and not requirements:
|
if "@" in pkg_dir and "__src_url" not in manifest and not requirements:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@ -814,7 +814,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("Fixed", fg="yellow")))
|
click.echo("[%s]" % (click.style("Detached", fg="yellow")))
|
||||||
|
|
||||||
if only_check or not latest:
|
if only_check or not latest:
|
||||||
return True
|
return True
|
||||||
|
Reference in New Issue
Block a user