Mercurial > hg > fetch
comparison fetch.py @ 34:14c791d8db59
pass the dest to clobber for tarball
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 15 Nov 2011 11:57:32 -0800 |
parents | 46d5bd33311d |
children | d9b9c4599a3d |
comparison
equal
deleted
inserted
replaced
33:60bda84b3b32 | 34:14c791d8db59 |
---|---|
81 """fetch and extract a tarball""" | 81 """fetch and extract a tarball""" |
82 | 82 |
83 type = 'tar' | 83 type = 'tar' |
84 | 84 |
85 def __call__(self, dest): | 85 def __call__(self, dest): |
86 self.clobber() | 86 self.clobber(dest) |
87 if os.path.exists(dest): | 87 if os.path.exists(dest): |
88 assert os.path.isdir(dest), "Destination must be a directory" | 88 assert os.path.isdir(dest), "Destination must be a directory" |
89 else: | 89 else: |
90 os.mkdirs(dest) | 90 os.mkdirs(dest) |
91 if self.subpath: | 91 if self.subpath: |