diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2015-01-08 18:13:09 +0000 |
---|---|---|
committer | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2015-01-12 11:57:46 +0000 |
commit | 9b01e0431e33c7ffc3aa40bc01e026b37da4745f (patch) | |
tree | 3e9648e445413e79148944ab94f0cceb4bfb2d44 | |
parent | 28eff204f1162ddc516a8ff4cfef894c2273ff7f (diff) | |
download | import-9b01e0431e33c7ffc3aa40bc01e026b37da4745f.tar.gz |
Add option for debugging vcss
It's sometime useful to see the output of the vcs, but having this enabled
all the time clutters the log
-rwxr-xr-x | baserockimport/exts/python.to_lorry | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/baserockimport/exts/python.to_lorry b/baserockimport/exts/python.to_lorry index 3f0a463..1452be8 100755 --- a/baserockimport/exts/python.to_lorry +++ b/baserockimport/exts/python.to_lorry @@ -47,6 +47,8 @@ def fetch_package_metadata(package_name): def find_repo_type(url): + debug_vcss = False + # Don't bother with detection if we can't get a 200 OK logging.debug("Getting '%s' ..." % url) @@ -79,7 +81,8 @@ def find_repo_type(url): if line == '': break - logging.debug(line.rstrip('\n')) + if debug_vcss: + logging.debug(line.rstrip('\n')) p.wait() # even with eof on both streams, we still wait |