diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2018-09-14 10:42:07 +0200 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2018-09-14 16:36:47 +0100 |
commit | e108d7c03834446f8dac66ad69f5eade4f2c5fce (patch) | |
tree | a66a408ca86cd6dc4c64184543d49b7415c4af06 /tests/importer_tests.py | |
parent | 8e60e299cdfb0027d6b6ea845234ef54ae785186 (diff) | |
download | sos-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/importer_tests.py')
0 files changed, 0 insertions, 0 deletions