changed VCS check to .link instead of .original_link

This commit is contained in:
Erin O'Connell
2017-06-15 22:13:38 -06:00
parent 7ba82f5550
commit c03f7f9ab8
+3 -4
View File
@@ -109,10 +109,9 @@ def ensure_pipfile(validate=True):
for package in reqs:
if package.name not in BAD_PACKAGES:
if package.original_link is not None:
pack_link = str(package.original_link)
pack = '-e {0}'.format(pack_link) if package.editable else pack_link
project.add_package_to_pipfile(pack)
if package.link is not None:
package_string = '-e {0}'.format(package.link) if package.editable else str(package.link)
project.add_package_to_pipfile(package_string)
else:
project.add_package_to_pipfile(str(package.req))