Mercurial > hg > fetch
diff fetch.py @ 38:645d02834042
extract....correctly?
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 15 Nov 2011 12:56:35 -0800 |
parents | f30fe9183e64 |
children | 8addc3712e75 |
line wrap: on
line diff
--- a/fetch.py Tue Nov 15 12:31:35 2011 -0800 +++ b/fetch.py Tue Nov 15 12:56:35 2011 -0800 @@ -84,7 +84,9 @@ buffer.write(self.download(self.url)) buffer.seek(0) tf = tarfile.open(mode='r', fileobj=buffer) - tf.extract(dest) + members = tf.getmembers() + for member in members: + tf.extract(member, dest) fetchers = [FileFetcher, TarballFetcher]