diff options
author | Jake Hunsaker <jhunsake@redhat.com> | 2020-09-17 10:27:50 -0400 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2020-09-21 11:56:40 -0400 |
commit | fa1a42aaedc5b31b170b16b2562942206c6f88f3 (patch) | |
tree | 4a9a89057378cfee22d7f0a3bab4c3fb12668ede | |
parent | d7afa77a62e8b98553e4b7321432025a286a7ef9 (diff) | |
download | sos-fa1a42aaedc5b31b170b16b2562942206c6f88f3.tar.gz |
[cleaner] Fix handling of filepath when archive name is in the filepath
Fixes the splitting of filepaths within the archive, when the archive
name is included in the filename inside the archive.
Related: #2236
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r-- | sos/cleaner/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/cleaner/__init__.py b/sos/cleaner/__init__.py index a2647d70..e503454e 100644 --- a/sos/cleaner/__init__.py +++ b/sos/cleaner/__init__.py @@ -483,7 +483,7 @@ third party. file_list = archive.get_file_list() for fname in file_list: - short_name = fname.split(archive.archive_name)[1].lstrip('/') + short_name = fname.split(archive.archive_name + '/')[1] if archive.should_skip_file(short_name): continue try: |