Merge pull request #941 from kennethreitz/dot-fix-911

catch dot and act force package name to false
This commit is contained in:
Erin O'Connell
2017-10-19 00:01:44 -07:00
committed by GitHub
+5 -1
View File
@@ -1776,7 +1776,11 @@ def install(
# Capture -e argument and assign it to following package_name.
more_packages = list(more_packages)
if package_name == '-e':
package_name = ' '.join([package_name, more_packages.pop(0)])
package_name = ' '.join([package_name, more_packages.po(0)])
# Capture . argument and asign it to nothing
if package_name == '.':
package_name = False
# Allow more than one package to be provided.
package_names = [package_name, ] + more_packages