mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Merge branch 'do-not-destroy-lock' of https://github.com/frostming/pipenv into atomic-lockfile-overwrite
This commit is contained in:
@@ -1005,8 +1005,6 @@ def do_lock(
|
||||
)
|
||||
sys.exit(1)
|
||||
cached_lockfile = project.lockfile_content
|
||||
if write:
|
||||
project.destroy_lockfile()
|
||||
if write:
|
||||
# Alert the user of progress.
|
||||
click.echo(
|
||||
|
||||
@@ -673,14 +673,6 @@ class Project(object):
|
||||
return found_source
|
||||
raise SourceNotFound(name or url)
|
||||
|
||||
def destroy_lockfile(self):
|
||||
"""Deletes the lockfile."""
|
||||
try:
|
||||
return os.remove(self.lockfile_location)
|
||||
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
def get_package_name_in_pipfile(self, package_name, dev=False):
|
||||
"""Get the equivalent package name in pipfile"""
|
||||
key = 'dev-packages' if dev else 'packages'
|
||||
|
||||
Reference in New Issue
Block a user