mirror of
https://github.com/peridotbuild/pv2.git
synced 2024-11-22 05:01:26 +00:00
add restorecon if applicable
This commit is contained in:
parent
6ba79e2aaf
commit
fb91f36128
@ -113,6 +113,8 @@ class Import:
|
|||||||
os.remove(source_path)
|
os.remove(source_path)
|
||||||
else:
|
else:
|
||||||
shutil.move(src=source_path, dst=dest_path)
|
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):
|
class SrpmImport(Import):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user