"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "salt/fileserver/svnfs.py" between
salt-2019.2.0.tar.gz and salt-2019.2.1.tar.gz

About: SaltStack is a systems management software for data center automation, cloud orchestration, server provisioning, configuration management and more. Community version.

svnfs.py  (salt-2019.2.0):svnfs.py  (salt-2019.2.1)
skipping to change at line 754 skipping to change at line 754
os.path.join(env_root, repo['root']).rstrip(os.path.sep) os.path.join(env_root, repo['root']).rstrip(os.path.sep)
if not os.path.isdir(env_root): if not os.path.isdir(env_root):
# svnfs root (global or per-remote) does not exist in env # svnfs root (global or per-remote) does not exist in env
continue continue
for root, dirs, files in salt.utils.path.os_walk(env_root): for root, dirs, files in salt.utils.path.os_walk(env_root):
relpath = os.path.relpath(root, env_root) relpath = os.path.relpath(root, env_root)
dir_rel_fn = os.path.join(repo['mountpoint'], relpath) dir_rel_fn = os.path.join(repo['mountpoint'], relpath)
if relpath != '.': if relpath != '.':
ret['dirs'].add(dir_rel_fn) ret['dirs'].add(dir_rel_fn)
if len(dirs) == 0 and len(files) == 0: if not dirs and not files:
ret['empty_dirs'].add(dir_rel_fn) ret['empty_dirs'].add(dir_rel_fn)
for fname in files: for fname in files:
rel_fn = os.path.relpath( rel_fn = os.path.relpath(
os.path.join(root, fname), os.path.join(root, fname),
env_root env_root
) )
ret['files'].add(os.path.join(repo['mountpoint'], rel_fn)) ret['files'].add(os.path.join(repo['mountpoint'], rel_fn))
if repo['mountpoint']: if repo['mountpoint']:
ret['dirs'].add(repo['mountpoint']) ret['dirs'].add(repo['mountpoint'])
# Convert all compiled sets to lists # Convert all compiled sets to lists
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)