diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-05-27 23:59:31 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-05-27 23:59:31 +0100 |
| commit | 5946dcffc62624d73fc7037ac7d817600d458ab8 (patch) | |
| tree | c0d6264561f6ca24407f48e001e47f51ed8a68b9 /cdistvm | |
| parent | dc9cf91be85fd0a393f5fcc263f131c0ba594d69 (diff) | |
| parent | 582d8370e7ee6663d3c7a31c986a3cda601ca39b (diff) | |
Try to clear out /var/tmp better.
Diffstat (limited to 'cdistvm')
| -rwxr-xr-x | cdistvm | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -44,7 +44,7 @@ if args.major is True: if args.checkout is not None: cdist_cmd += '--checkout %s ' % args.checkout if args.output is not None: - cdist_cmd += '--output %s ' % args.output + cdist_cmd += '--output cdistvm ' if args.quiet is True: cdist_cmd += '--quiet ' if args.keep is True: @@ -69,12 +69,12 @@ ports = { 'fedora-22-32': 2000, vbox = subprocess.Popen('vboxheadless --startvm %s' % args.target, shell=True) time.sleep(10) -command('ssh -p %d carl@localhost "rm -rf fedora-* arch-* /var/tmp/tmp*"' % ports[args.target]) +command('ssh -p %d carl@localhost "rm -rf cdistvm /var/tmp/tmp*"' % ports[args.target]) command('ssh -p %d carl@localhost %s' % (ports[args.target], cdist_cmd)) -if args.output is not None: +if args.command in ['package', 'doxygen', 'manual', 'changelog', 'pot']: tmp = tempfile.mkdtemp() - command('scp -P %d carl@localhost:%s/* %s/' % (ports[args.target], args.target, tmp)) - command('scp %s/*.rpm %s/' % (tmp, args.output)) + command('scp -r -P %d carl@localhost:cdistvm/* %s/' % (ports[args.target], tmp)) + command('scp -r %s/* %s/' % (tmp, args.output)) shutil.rmtree(tmp) try: |
