Mercurial > hg > fetch
changeset 40:e103ae19c2a0
get subpaths working for tarballs
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 15 Nov 2011 14:03:48 -0800 |
parents | 8addc3712e75 |
children | 0facc5466dbe |
files | fetch.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/fetch.py Tue Nov 15 13:53:54 2011 -0800 +++ b/fetch.py Tue Nov 15 14:03:48 2011 -0800 @@ -97,8 +97,9 @@ assert toppath == split[0], "Multiple top-level archives found" else: toppath = split[0] - if split and split[1:len(self.subpath)] == self.subpath: - import pdb; pdb.set_trace() + if split and split[1:len(self.subpath)+1] == self.subpath: + member.name = os.path.sep.join(split[1:]) + _members.append(member) members = _members