Add subpath argument.
This commit is contained in:
parent
3aeb984147
commit
2ceef03c8a
1 changed files with 2 additions and 2 deletions
|
@ -28,9 +28,9 @@ from buildlog_consultant.sbuild import (
|
||||||
from . import DetailedFailure
|
from . import DetailedFailure
|
||||||
|
|
||||||
|
|
||||||
def export_vcs_tree(tree, directory):
|
def export_vcs_tree(tree, directory, subpath=""):
|
||||||
try:
|
try:
|
||||||
export(tree, directory, "dir", None)
|
export(tree, directory, "dir", None, subdir=(subpath or None))
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
if e.errno == errno.ENOSPC:
|
if e.errno == errno.ENOSPC:
|
||||||
raise DetailedFailure(1, ["export"], NoSpaceOnDevice())
|
raise DetailedFailure(1, ["export"], NoSpaceOnDevice())
|
||||||
|
|
Loading…
Add table
Reference in a new issue