From 2ceef03c8adb930315b5078d88158874f3c6f78f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= Date: Thu, 18 Mar 2021 21:11:21 +0000 Subject: [PATCH] Add subpath argument. --- ognibuild/vcs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ognibuild/vcs.py b/ognibuild/vcs.py index b9bbf77..45b32c6 100644 --- a/ognibuild/vcs.py +++ b/ognibuild/vcs.py @@ -28,9 +28,9 @@ from buildlog_consultant.sbuild import ( from . import DetailedFailure -def export_vcs_tree(tree, directory): +def export_vcs_tree(tree, directory, subpath=""): try: - export(tree, directory, "dir", None) + export(tree, directory, "dir", None, subdir=(subpath or None)) except OSError as e: if e.errno == errno.ENOSPC: raise DetailedFailure(1, ["export"], NoSpaceOnDevice())