mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-03 03:26:41 +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:
|
def image_filter(change: Change, path: str) -> bool:
|
||||||
|
|
||||||
if change == Change.added:
|
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
|
return False
|
||||||
header_magic_len = 7
|
header_magic_len = 7
|
||||||
with open(path, "rb") as f:
|
with open(path, "rb") as f:
|
||||||
|
Loading…
Reference in New Issue
Block a user