Merge pull request #3175 from jxltom/continue-respect-skip-lock-in-uninstall

Continue respect skip lock in uninstall
This commit is contained in:
Dan Ryan
2018-11-06 22:58:21 -05:00
committed by GitHub
2 changed files with 0 additions and 13 deletions
-1
View File
@@ -353,7 +353,6 @@ def uninstall_options(f):
def lock_options(f):
f = install_base_options(f)
f = requirements_flag(f)
f = skip_lock_option(f)
f = pre_option(f)
return f
-12
View File
@@ -2099,18 +2099,6 @@ def do_uninstall(
crayons.normal(fix_utf8("Un-installing all packages from virtualenv…"), bold=True)
)
do_purge(allow_global=system)
removed = package_names - bad_pkgs
if pipfile_remove:
project.remove_packages_from_pipfile(removed)
if lock:
do_lock(system=system, keep_outdated=keep_outdated, pypi_mirror=pypi_mirror)
else:
lockfile = project.get_or_create_lockfile()
for key in lockfile.default.keys():
del lockfile.default[key]
for key in lockfile.develop.keys():
del lockfile.develop[key]
lockfile.write()
return
if all_dev:
package_names = develop