Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a76c1be

Browse files
author
jtimberman
committed
also look for https
1 parent 6d2451d commit a76c1be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

providers/pip.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def candidate_version
133133
def install_package(version)
134134
# if a version isn't specified (latest), is a source archive (ex. http://my.package.repo/SomePackage-1.0.4.zip),
135135
# or from a VCS (ex. git+https://git.repo/some_pkg.git) then do not append a version as this will break the source link
136-
if version == 'latest' || @new_resource.name.downcase.start_with?('http:') || ['git', 'hg', 'svn'].include?(@new_resource.name.downcase.split('+')[0])
136+
if version == 'latest' || @new_resource.name.downcase.start_with?('http:', 'https:') || ['git', 'hg', 'svn'].include?(@new_resource.name.downcase.split('+')[0])
137137
version = ''
138138
else
139139
version = "==#{version}"

0 commit comments

Comments
 (0)