summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2014-10-16 17:03:07 +0100
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2014-11-04 12:40:55 +0000
commit02598ba7ff12c44a10108ded5926518cec8708dc (patch)
treefbb450841728dfa6a20545d28163ca7b5fc4b380
parenteed0e280adcafadc7332736290ec57a082b29850 (diff)
downloadimport-02598ba7ff12c44a10108ded5926518cec8708dc.tar.gz
And be a bit more verbose
-rwxr-xr-ximport/pip_lorry.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/import/pip_lorry.py b/import/pip_lorry.py
index 7d367c4..5dd8f34 100755
--- a/import/pip_lorry.py
+++ b/import/pip_lorry.py
@@ -43,10 +43,13 @@ def fetch_package_metadata(package_name):
error("Couldn't fetch package metadata: ", e)
def find_repo_type(url):
+ print('Finding repo type for %s' % url)
+
vcss = [('git', 'clone'), ('hg', 'clone'),
('svn', 'checkout'), ('bzr', 'branch')]
for (vcs, vcs_command) in vcss:
+ print('Trying %s %s' % (vcs, vcs_command))
tempdir = tempfile.mkdtemp()
p = subprocess.Popen([vcs, vcs_command, url], stdout=subprocess.PIPE,
@@ -56,8 +59,11 @@ def find_repo_type(url):
shutil.rmtree(tempdir)
if p.returncode == 0:
+ print('%s is a %s repo' % (url, vcs))
return vcs
+ print("%s doesn't seem to be a repo" % url)
+
return None
def get_compression(url):