Fix error downloading

This commit is contained in:
Joshua Harlow
2012-09-17 17:11:59 -07:00
parent fbb5a5caa2
commit 3bfad547c7

View File

@@ -134,7 +134,7 @@ def download(distro, uri, target_dir, **kwargs):
if scheme in ['git'] or path.find('.git') != -1:
downloader = GitDownloader(distro, uri, target_dir)
downloader.download()
if scheme in ['http', 'https']:
elif scheme in ['http', 'https']:
with utils.tempdir() as tdir:
fn = sh.basename(path)
downloader = UrlLibDownloader(uri, sh.joinpths(tdir, fn))