From 725c226dddb311896dbc0ff1f7e199ab0a79a625 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Fri, 27 Sep 2024 16:36:42 +0200 Subject: [PATCH] test --- mock/py/mockbuild/plugins/chroot_scan.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mock/py/mockbuild/plugins/chroot_scan.py b/mock/py/mockbuild/plugins/chroot_scan.py index 5e42714c8..49247013e 100644 --- a/mock/py/mockbuild/plugins/chroot_scan.py +++ b/mock/py/mockbuild/plugins/chroot_scan.py @@ -67,7 +67,10 @@ def __scanChroot(self): m = regex.search(f) if m: srcpath = os.path.join(root, f) - util.do("cp --preserve=mode --parents %s %s" % (srcpath, self.resultdir), shell=True) + # we intentionally ignore errors here: + # https://github.com/rpm-software-management/mock/issues/1455 + util.do(["cp", "--preserve=mode", "--parents", srcpath, + self.resultdir], raiseExc=False) count += 1 copied.append(srcpath) logger.debug("chroot_scan: finished with %d files found", count)