mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-14 04:19:00 +00:00
Ignore image detection for IOU user libraries in image directory
This commit is contained in:
parent
d022b211dc
commit
7f5ad8e225
@ -91,7 +91,8 @@ async def get_computes(app: FastAPI) -> List[dict]:
|
||||
def image_filter(change: Change, path: str) -> bool:
|
||||
|
||||
if change == Change.added:
|
||||
if path.endswith(".tmp") or path.endswith(".md5sum") or path.startswith("."):
|
||||
if path.endswith(".tmp") or path.endswith(".md5sum") or path.startswith(".") or \
|
||||
"/lib/" in path or "/lib64/" in path:
|
||||
return False
|
||||
header_magic_len = 7
|
||||
with open(path, "rb") as f:
|
||||
|
Loading…
Reference in New Issue
Block a user