Skip to content

Commit

Permalink
refactor(installer): check for _write_lock even on force
Browse files Browse the repository at this point in the history
  • Loading branch information
mkniewallner authored and neersighted committed May 29, 2022
1 parent 81d9479 commit 6a6034e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/poetry/installation/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def _do_install(self, local_repo: Repository) -> int:
return self._execute(ops)

def _write_lock_file(self, repo: Repository, force: bool = False) -> None:
if force or (self._update and self._write_lock):
if self._write_lock and (force or self._update):
updated_lock = self._locker.set_lock_data(self._package, repo.packages)

if updated_lock:
Expand Down

0 comments on commit 6a6034e

Please sign in to comment.