mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-02-11 17:14:59 +08:00
Cleanup the temporary directory
This commit is contained in:
committed by
Nils Philippsen
parent
2c90806aa7
commit
7d487b64fc
@@ -33,6 +33,7 @@ import os
|
||||
import subprocess as sp
|
||||
import re
|
||||
import tempfile
|
||||
import shutil
|
||||
|
||||
from rida import log
|
||||
import rida.utils
|
||||
@@ -169,6 +170,7 @@ class SCM(object):
|
||||
try:
|
||||
td = tempfile.mkdtemp()
|
||||
self.checkout(td)
|
||||
shutil.rmtree(td)
|
||||
return True
|
||||
except:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user