Commit 59e57fec authored by Paweł Szostek's avatar Paweł Szostek

svn.py: add debugging info

parent 31177210
......@@ -2,6 +2,7 @@
import os
import logging
import path
class Svn(object):
......@@ -15,6 +16,9 @@ class Svn(object):
cur_dir = os.getcwd()
os.chdir(module.fetchto)
basename = path.url_basename(module.url)
mod_path = os.path.join(module.fetchto, basename)
cmd = "svn checkout {0} " + module.basename
if module.revision:
cmd = cmd.format(module.url + '@' + module.revision)
......@@ -23,6 +27,7 @@ class Svn(object):
success = True
logging.info("Checking out module %s" % mod_path)
logging.debug(cmd)
if os.system(cmd) != 0:
success = False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment