diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-11-12 23:47:58 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-11-12 23:47:58 +0000 |
| commit | bbd34ea61b7cef6a5fdedfa5a6f49ef6c4894096 (patch) | |
| tree | f16455492f28f1bd3471d5875af9c1f7a59cd5cb | |
| parent | 226736f02a3bb9f8030b10feb7ff8f5126cdb9ff (diff) | |
Make directories before copying output in all cases.
| -rwxr-xr-x | cdist | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -674,6 +674,10 @@ def main(): for p in packages: copyfile(p, '%s/%s' % (out, os.path.basename(devel_to_git(project, p)))) else: + try: + makedirs(args.output) + except: + pass for p in packages: copyfile(p, '%s%s' % (args.output, os.path.basename(devel_to_git(project, p)))) |
