changeset 6:86f6f99e421b

add types for unimplemented dispatchers
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 18 Sep 2011 18:27:57 -0700
parents 5b78d1411cdd
children 4d3d0e1324f5
files fetch/main.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/fetch/main.py	Sun Sep 18 10:48:19 2011 -0700
+++ b/fetch/main.py	Sun Sep 18 18:27:57 2011 -0700
@@ -41,6 +41,7 @@
     f.write(self.download(self.url))
     f.close()
 
+
 class TarballFetcher(FileFetcher):
   """fetch and extract a tarball"""
 
@@ -49,9 +50,13 @@
 class HgFetcher(Fetcher):
   """checkout a mercurial repository"""
 
+  type = 'hg'
+
 class GitFetcher(Fetcher):
   """checkout a git repository"""
 
+  type = 'git'
+
 fetchers = [FileFetcher]
 
 class Fetch(object):