fix: not auto-injecting already fixed dependency names

whoops
This commit is contained in:
zx committed 2024-11-07 22:31:43 -05:00
1 parent 73d1495eff
commit 354a1d9ac5
2 files changed
+9 -8

No files matched your search

+8 -7
View File
@@ -84,15 +84,16 @@ class Executable:
for dep in self.get_dependencies():
for common, info in self.common.items():
if common in dep.lower() and dep != info["path"]:
self.change_dependency(dep, info["path"])
print(
f"[*] fixed common dependency in {self.bn}: "
f"{dep} -> {info['path']}"
)
if common in dep.lower():
needed.add(common)
if dep != info["path"]:
self.change_dependency(dep, info["path"])
print(
f"[*] fixed common dependency in {self.bn}: "
f"{dep} -> {info['path']}"
)
def fix_dependencies(self, tweaks: dict[str, str]) -> None:
for dep in self.get_dependencies():
for cname in tweaks:
+1 -1
View File
@@ -5,7 +5,7 @@ import subprocess
from typing import Optional
try:
import lief
import lief # type: ignore
except Exception:
pass