From d10ac431ae66337c89e9f8ffae3542ff55900c55 Mon Sep 17 00:00:00 2001 From: Dusty Mabe Date: Thu, 9 Apr 2020 17:50:03 -0400 Subject: [PATCH] coreos-ostree-importer: remove permissions check for now We need to update a few pieces to set their umask to 0002 when modifying files in the repos. robosignatory and pungi are two that still need to be updated. For now let's just print the warnings and not error out. --- coreos-ostree-importer/coreos_ostree_importer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coreos-ostree-importer/coreos_ostree_importer.py b/coreos-ostree-importer/coreos_ostree_importer.py index c0cee55..a51d90d 100755 --- a/coreos-ostree-importer/coreos_ostree_importer.py +++ b/coreos-ostree-importer/coreos_ostree_importer.py @@ -198,7 +198,8 @@ def assert_dirs_permissions(path: str): logger.warning(f"Directory {d} does not have gid=263!") founderror = True if founderror: - raise Exception(f"Found directories with unexpected permissions/ownership") + print(f"XXX: Found directories with unexpected permissions/ownership") + #raise Exception(f"Found directories with unexpected permissions/ownership") def runcmd(cmd: list, **kwargs: int) -> subprocess.CompletedProcess: