Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Some bugfixes #115

Closed
wants to merge 2 commits into from

2 participants

@schlamar

No description provided.

@wbond
Owner

The code that calls find_binary adds .exe where appropriate. The Curl and Wget downloads are only designed and tested on Linux. All other platforms support SSL with the Urllib downloader.

@wbond
Owner

Fixed variable reference error in 97f2788. I couldn't figure out how to easily just pull that one commit, so I duplicated the fix. Thanks!

@wbond wbond closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 0 deletions.
  1. +5 −0 Package Control.py
View
5 Package Control.py
@@ -550,6 +550,10 @@ def find_binary(self, name):
if os.path.exists(path):
return path
+ if sys.platform == 'win32':
+ if os.path.exists(path + '.exe'):
+ return path
+
raise BinaryNotFoundError('The binary %s could not be located' % name)
def execute(self, args):
@@ -985,6 +989,7 @@ def normalize(v):
def download_url(self, url, error_message):
has_ssl = 'ssl' in sys.modules and hasattr(urllib2, 'HTTPSHandler')
is_ssl = re.search('^https://', url) != None
+ downloader = None
if (is_ssl and has_ssl) or not is_ssl:
downloader = UrlLib2Downloader(self.settings)
Something went wrong with that request. Please try again.