Commit 8af930d2 by Clinton Blackburn

Fixed package uninstall for django-oauth2-provider

edx-django-oauth2-provider is being mistaken for django-oauth2-provider. Making the filter less liberal ensures we properly uninstall django-oauth2-provider once.

ECOM-3647
parent 1f9e90ef
......@@ -195,7 +195,7 @@ def uninstall_python_packages():
uninstalled = True
# Uninstall django-oauth2-provider
if any("django-oauth2-provider==" in line for line in frozen):
if any(line.startswith("django-oauth2-provider==") for line in frozen):
sh("pip uninstall --disable-pip-version-check -y django-oauth2-provider")
uninstalled = True
......
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