diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-12-04 20:25:21 +0000 |
---|---|---|
committer | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-12-04 20:38:01 +0000 |
commit | 24a83f5f7abe7d8f44802e011eb9fe60a13ed808 (patch) | |
tree | f7ba057c5e9c77c73ae5ac2d3ecbaf864c2013aa | |
parent | 72a5c58af38af09191bba5b28afc853d33f8ae79 (diff) | |
download | import-24a83f5f7abe7d8f44802e011eb9fe60a13ed808.tar.gz |
Revert "Don't attempt repo detection unless we get 200 OK"
This reverts commit e69115ff3bf050dccb442e395022ff1494ba4e22.
I think we only want to avoid detection 4XX and 5XX, possibly.
-rwxr-xr-x | exts/pip.to_lorry | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/exts/pip.to_lorry b/exts/pip.to_lorry index 557b53e..e3b73af 100755 --- a/exts/pip.to_lorry +++ b/exts/pip.to_lorry @@ -45,17 +45,6 @@ def fetch_package_metadata(package_name): return result.json() def find_repo_type(url): - - # Don't bother with detection if we can't get a 200 OK - logging.debug("Getting '%s' ..." % url) - - status_code = requests.get(url).status_code - if status_code != 200: - logging.debug('Got %d status code from %s, aborting repo detection' - % (status_code, url)) - return None - - logging.debug('200 OK for %s' % url) logging.debug('Finding repo type for %s' % url) vcss = [('git', 'clone'), ('hg', 'clone'), |