From 9b01e0431e33c7ffc3aa40bc01e026b37da4745f Mon Sep 17 00:00:00 2001 From: Richard Ipsum Date: Thu, 8 Jan 2015 18:13:09 +0000 Subject: 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 --- baserockimport/exts/python.to_lorry | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1