Blame SOURCES/oscap-anaconda-addon-2.0.1-fix_archive_handling-PR_170.patch

d60810
diff --git a/org_fedora_oscap/content_discovery.py b/org_fedora_oscap/content_discovery.py
d60810
index bc14ef1..ccfe6c8 100644
d60810
--- a/org_fedora_oscap/content_discovery.py
d60810
+++ b/org_fedora_oscap/content_discovery.py
d60810
@@ -225,7 +225,8 @@ def _gather_available_files(self, actually_fetched_content, dest_filename):
d60810
             if not dest_filename:  # using scap-security-guide
d60810
                 fpaths = [self.DEFAULT_SSG_DATA_STREAM_PATH]
d60810
             else:  # Using downloaded XCCDF/OVAL/DS/tailoring
d60810
-                fpaths = glob(str(self.CONTENT_DOWNLOAD_LOCATION / "*.xml"))
d60810
+                fpaths = pathlib.Path(self.CONTENT_DOWNLOAD_LOCATION).rglob("*")
d60810
+                fpaths = [str(p) for p in fpaths if p.is_file()]
d60810
         else:
d60810
             dest_filename = pathlib.Path(dest_filename)
d60810
             # RPM is an archive at this phase