Do not skip fixed packages with custom requirements

This commit is contained in:
Ivan Kravets
2017-09-03 20:58:48 +03:00
parent ed6b196459
commit 95aaca5e02

View File

@ -556,8 +556,8 @@ class BasePkgManager(PkgRepoMixin, PkgInstallerMixin):
assert isdir(pkg_dir)
latest = None
manifest = self.load_manifest(pkg_dir)
# skip a fixed package to a specific version
if "@" in pkg_dir and "__src_url" not in manifest:
# skip fixed package to a specific version
if "@" in pkg_dir and "__src_url" not in manifest and not requirements:
return None
if "__src_url" in manifest:
@ -721,7 +721,7 @@ class BasePkgManager(PkgRepoMixin, PkgInstallerMixin):
elif latest is False:
click.echo("[%s]" % (click.style("Up-to-date", fg="green")))
else:
click.echo("[%s]" % (click.style("Skip", fg="yellow")))
click.echo("[%s]" % (click.style("Fixed", fg="yellow")))
if only_check or not latest:
return