From fb91f361286dd645ecfa32b4a54568bd53458f76 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Tue, 27 Jun 2023 19:26:57 -0700 Subject: [PATCH] add restorecon if applicable --- importer/operation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/importer/operation.py b/importer/operation.py index 3897fb4..ae1878d 100644 --- a/importer/operation.py +++ b/importer/operation.py @@ -113,6 +113,8 @@ class Import: os.remove(source_path) else: shutil.move(src=source_path, dst=dest_path) + if os.path.exists('/usr/sbin/restorecon'): + processor.run_proc_foreground_shell('/usr/sbin/restorecon {dest_path}') class SrpmImport(Import): """