add restorecon if applicable

This commit is contained in:
Louis Abel 2023-06-27 19:26:57 -07:00
parent 6ba79e2aaf
commit fb91f36128
Signed by: label
GPG Key ID: 3331F061D1D9990E

View File

@ -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):
"""