Commit 50f69ff8 by Sébastien Eustace

Fix platform verification and duplicates in pyproject.lock

parent 05c2964d
# Change Log
## [Unreleased]
### Fixed
- Fixed platform verification which led to missing packages.
- Fixed duplicates in `pyproject.lock`.
## [0.8.2] - 2018-04-14
### Fixed
......
......@@ -361,7 +361,8 @@ class Installer:
def _populate_local_repo(self, local_repo, ops, locked_repository):
# Add all locked packages from the lock and go from there
for package in locked_repository.packages:
local_repo.add_package(package)
if not local_repo.has_package(package):
local_repo.add_package(package)
# Now, walk through all operations and add/remove/update accordingly
for op in ops:
......@@ -392,7 +393,8 @@ class Installer:
acted_on = True
if not acted_on:
local_repo.add_package(package)
if not local_repo.has_package(package):
local_repo.add_package(package)
def _get_operations_from_lock(self,
locked_repository # type: Repository
......@@ -470,12 +472,6 @@ class Installer:
op.skip('Not needed for the current platform')
continue
if not package.platform_constraint.matches(
GenericConstraint('=', sys.platform)
):
op.skip('Not needed for the current platform')
continue
if self._update:
extras = {}
for extra, deps in self._package.extras.items():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment