From bcae487cfdc2609dae47d330a5294642f708a170 Mon Sep 17 00:00:00 2001 From: lixin Date: Fri, 7 Apr 2023 15:10:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=B8=85=E7=90=86=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E7=9A=84=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- abicheck/binhandler.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/abicheck/binhandler.py b/abicheck/binhandler.py index ff5a204..26211ea 100644 --- a/abicheck/binhandler.py +++ b/abicheck/binhandler.py @@ -2,6 +2,7 @@ import logging import os import platform import re +import shutil import distro @@ -638,6 +639,10 @@ class ABI: html_file = os.path.join(self.output_dir, self.EXPORT_HTML_FILE) self.logger.info(f"The check result is {os.path.abspath(html_file)}") + def clean_cache(self): + cache_dir = '/tmp/abi-info-check-cache' + if os.path.exists(cache_dir): + shutil.rmtree(cache_dir) # get the libs prog depends on and write the results into opened file f analyzedlist = [] -- Gitee