diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2015-11-10 22:36:52 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2015-11-10 22:39:40 +0900 |
commit | cad366009045adaae0359b9d0c55d33d0f106d61 (patch) | |
tree | b99e5040af611a8df4e52fc23d4aff13b18f8f63 /lorry | |
parent | 5b315c4d7119666a207bcf09624be3ea52750a82 (diff) | |
download | lorry-cad366009045adaae0359b9d0c55d33d0f106d61.tar.gz |
Added gzip file support to lorry
The new 'gzip' lorry file is practical for any gzipped single file
repositories, this can be useful for some static blob resources,
such as fonts.
Change-Id: I931e15e4c1291d820db82d0fc764aa767d3df9ab
Diffstat (limited to 'lorry')
-rwxr-xr-x | lorry | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -192,7 +192,8 @@ class Lorry(cliapp.Application): 'hg': self.gitify_hg, 'svn': self.gitify_svn, 'tarball': functools.partial(self.gitify_archive, 'tar'), - 'zip': functools.partial(self.gitify_archive, 'zip') + 'zip': functools.partial(self.gitify_archive, 'zip'), + 'gzip': functools.partial(self.gitify_archive, 'gzip') } vcstype = spec['type'] if vcstype not in table: @@ -500,7 +501,7 @@ class Lorry(cliapp.Application): cwd=gitdir) def gitify_archive(self, archive_type, project_name, dirname, gitdir, spec): - assert archive_type in ['zip', 'tar'] + assert archive_type in ['zip', 'gzip', 'tar'] url = spec['url'] url_path = urllib2.urlparse.urlparse(url)[2] |