diff options
-rwxr-xr-x | lorry | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -369,21 +369,21 @@ class Lorry(cliapp.Application): if not os.path.exists(gitdir): self.run_program(['git', 'init', gitdir]) - cmdline = ['tar', '--extract', '--file', tardest] - # compression is handled in long form, so use gzip instead of z - try: - cmdline += ['--' + spec['compression']] - except KeyError: - pass - # tarballs often have a directory on top, strip = 1 will remove it - try: - cmdline += ['--strip-components', str(spec['strip'])] - except KeyError: - pass - self.run_program(cmdline, cwd=gitdir) - self.run_program(['git', 'add', '.'], cwd=gitdir) - self.run_program(['git', 'commit', '-m', 'Tarball conversion'], - cwd=gitdir) + cmdline = ['tar', '--extract', '--file', tardest] + # compression is handled in long form, so use gzip instead of z + try: + cmdline += ['--' + spec['compression']] + except KeyError: + pass + # tarballs often have a directory on top, strip = 1 will remove it + try: + cmdline += ['--strip-components', str(spec['strip'])] + except KeyError: + pass + self.run_program(cmdline, cwd=gitdir) + self.run_program(['git', 'add', '.'], cwd=gitdir) + self.run_program(['git', 'commit', '-m', 'Tarball conversion'], + cwd=gitdir) def push_to_mirror_server(self, name, gitdir, |