# HG changeset patch # User Jeff Hammel # Date 1321386346 28800 # Node ID 60e0e932570e9ee46a0306e331b5982f5a500ae4 # Parent 0d3c1c78ff0aa3b5ecf9c08e78ca75818e248813 fix one error but not the one i was aiming for diff -r 0d3c1c78ff0a -r 60e0e932570e example.txt --- a/example.txt Tue Nov 15 10:18:56 2011 -0800 +++ b/example.txt Tue Nov 15 11:45:46 2011 -0800 @@ -2,4 +2,4 @@ # URL DESTINATION TYPE http://k0s.org/geekcode . file -https://github.com/mozilla/mozbase/tarball/master . tar +# https://github.com/mozilla/mozbase/tarball/master . tar diff -r 0d3c1c78ff0a -r 60e0e932570e fetch.py --- a/fetch.py Tue Nov 15 10:18:56 2011 -0800 +++ b/fetch.py Tue Nov 15 11:45:46 2011 -0800 @@ -264,8 +264,13 @@ # fix up relative paths dest = item['dest'] if not os.path.isabs(dest): - relative_to = self.relative_to or os.path.dirname(os.path.abspath(item['manifest'])) - dest = os.path.join(relative_to, dest) + relative_to = self.relative_to + if not relative_to: + if isinstance(item['manifest'], basestring): + relative_to = os.path.dirname(os.path.abspath(item['manifest'])) + else: + relative_to = os.getcwd() + dest = os.path.normpath(os.path.join(relative_to, dest)) # fetch the items self(item['url'], destination=dest, type=item['type'], **item['options'])