diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-04-19 01:05:33 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-04-19 01:05:33 +0100 |
| commit | e1082eef0e630efa818d2b0cda7f077f27edc4c0 (patch) | |
| tree | 8117acbead2cc9af2389fbe132cefc2ebd92c198 | |
| parent | 9ede36a45bde78cc2e440188f5385e4213a5c7c9 (diff) | |
Try to fix output directories for debs.
| -rwxr-xr-x | cdist | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -409,7 +409,15 @@ elif args.command == 'package': target = Target(args.target) env = target.environment r = env.package(target, project) - copyfile(r, '%s/%s' % (args.output, os.path.basename(r))) + if target.platform == 'linux': + out = '%s-%d' % (target.version, target.bits) + try: + os.makedirs(out) + except: + pass + copyfile(r, '%s/%s' % (out, os.path.basename(r))) + else: + copyfile(r, '%s/%s' % (args.output, os.path.basename(r))) env.cleanup() |
