Do not destroy lock early

This commit is contained in:
Frost Ming
2018-04-20 21:19:38 +08:00
parent 92319e364d
commit 8bf64918e3
2 changed files with 0 additions and 10 deletions
-2
View File
@@ -1000,8 +1000,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(
-8
View File
@@ -668,14 +668,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'