aboutsummaryrefslogtreecommitdiffstats
path: root/tests/option_tests.py
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2018-09-14 10:42:07 +0200
committerBryn M. Reeves <bmr@redhat.com>2018-09-14 16:36:47 +0100
commite108d7c03834446f8dac66ad69f5eade4f2c5fce (patch)
treea66a408ca86cd6dc4c64184543d49b7415c4af06 /tests/option_tests.py
parent8e60e299cdfb0027d6b6ea845234ef54ae785186 (diff)
downloadsos-e108d7c03834446f8dac66ad69f5eade4f2c5fce.tar.gz
[archive] fix and simplify directory destination rewriting
Rewriting of the destination path by _make_leading_paths() only applies when creating intermediate path components that are a symbolic link. The final level of path creation must always be a directory, and the destination is always the absolute path to that directory. Always return the directory path when creating a new directory, and do not attempt to rewrite the destination at the top level in FileCacheArchive._check_path() since all intermediate links have already been handled inside _make_leading_paths() (i.e. the returned/rewritten destination is always equal to the path that was passed into the function). Resolves: #1432 Signed-off-by: Pavel Moravec <pmoravec@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'tests/option_tests.py')
0 files changed, 0 insertions, 0 deletions