mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge pull request #970 from nwjsmith/develop
Work around Python 2.6 bug involving relative paths from root
This commit is contained in:
commit
5b159230ac
@ -249,14 +249,13 @@ class Client(object):
|
||||
else:
|
||||
return ''
|
||||
else:
|
||||
dest = os.path.join(
|
||||
self.opts['cachedir'],
|
||||
'extrn_files',
|
||||
env,
|
||||
os.path.join(
|
||||
dest = os.path.normpath(
|
||||
os.sep.join([
|
||||
self.opts['cachedir'],
|
||||
'extrn_files',
|
||||
env,
|
||||
url_data.netloc,
|
||||
os.path.relpath(os.path.relpath(url_data.path, '/'), '..')
|
||||
))
|
||||
url_data.path]))
|
||||
destdir = os.path.dirname(dest)
|
||||
if not os.path.isdir(destdir):
|
||||
os.makedirs(destdir)
|
||||
|
Loading…
Reference in New Issue
Block a user