summaryrefslogtreecommitdiff
path: root/lorry
diff options
context:
space:
mode:
Diffstat (limited to 'lorry')
-rwxr-xr-xlorry5
1 files changed, 3 insertions, 2 deletions
diff --git a/lorry b/lorry
index 2759f54..7dfebee 100755
--- a/lorry
+++ b/lorry
@@ -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]