mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
client: move clean CCACHE to module
According 04b8575c52
cleaning CCACHE is
needed after installation. This commit moves this cleanup from
ipa-client-install to client.install() function
https://fedorahosted.org/freeipa/ticket/6392
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
parent
8cbbb53591
commit
bbad08900b
@ -265,8 +265,3 @@ if __name__ == "__main__":
|
||||
sys.exit(1)
|
||||
except RuntimeError as e:
|
||||
sys.exit(e)
|
||||
finally:
|
||||
try:
|
||||
os.remove(client.CCACHE_FILE)
|
||||
except Exception:
|
||||
pass
|
||||
|
@ -2285,6 +2285,16 @@ def install_check(options):
|
||||
|
||||
|
||||
def install(options):
|
||||
try:
|
||||
return _install(options)
|
||||
finally:
|
||||
try:
|
||||
os.remove(CCACHE_FILE)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
def _install(options):
|
||||
env = {'PATH': SECURE_PATH}
|
||||
|
||||
fstore = sysrestore.FileStore(paths.IPA_CLIENT_SYSRESTORE)
|
||||
|
Loading…
Reference in New Issue
Block a user