Commit 50f69ff8 by Sébastien Eustace

Fix platform verification and duplicates in pyproject.lock

parent 05c2964d
# Change Log # Change Log
## [Unreleased]
### Fixed
- Fixed platform verification which led to missing packages.
- Fixed duplicates in `pyproject.lock`.
## [0.8.2] - 2018-04-14 ## [0.8.2] - 2018-04-14
### Fixed ### Fixed
......
...@@ -361,6 +361,7 @@ class Installer: ...@@ -361,6 +361,7 @@ class Installer:
def _populate_local_repo(self, local_repo, ops, locked_repository): def _populate_local_repo(self, local_repo, ops, locked_repository):
# Add all locked packages from the lock and go from there # Add all locked packages from the lock and go from there
for package in locked_repository.packages: for package in locked_repository.packages:
if not local_repo.has_package(package):
local_repo.add_package(package) local_repo.add_package(package)
# Now, walk through all operations and add/remove/update accordingly # Now, walk through all operations and add/remove/update accordingly
...@@ -392,6 +393,7 @@ class Installer: ...@@ -392,6 +393,7 @@ class Installer:
acted_on = True acted_on = True
if not acted_on: if not acted_on:
if not local_repo.has_package(package):
local_repo.add_package(package) local_repo.add_package(package)
def _get_operations_from_lock(self, def _get_operations_from_lock(self,
...@@ -470,12 +472,6 @@ class Installer: ...@@ -470,12 +472,6 @@ class Installer:
op.skip('Not needed for the current platform') op.skip('Not needed for the current platform')
continue continue
if not package.platform_constraint.matches(
GenericConstraint('=', sys.platform)
):
op.skip('Not needed for the current platform')
continue
if self._update: if self._update:
extras = {} extras = {}
for extra, deps in self._package.extras.items(): 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