stages/copy: don't append path for input roots

The `parse_input` function should return the root for the input
only and must not include the path. Otherwise we will duplicate
it.
This commit is contained in:
Christian Kellner 2021-06-17 16:45:59 +00:00
parent 2e1105cea5
commit 3160bfe670

View file

@ -83,7 +83,7 @@ def parse_input(url: ParseResult, args: Dict):
if root is None:
raise ValueError(f"Unknown input '{root}'")
return os.path.join(root, url.path.lstrip("/"))
return root
def parse_location(location, args):