2 Commits
v1.4 ... v1.4.1

Author SHA1 Message Date
zx
403e5d65a5 chore: bump version to v1.4.1 2024-11-07 22:32:58 -05:00
zx
354a1d9ac5 fix: not auto-injecting already fixed dependency names
whoops
2024-11-07 22:31:43 -05:00
4 changed files with 11 additions and 10 deletions

View File

@@ -99,7 +99,7 @@ def main() -> None:
) )
parser.add_argument( parser.add_argument(
"--version", action="version", version="cyan v1.4" "--version", action="version", version="cyan v1.4.1"
) )
from cyan import logic from cyan import logic

View File

@@ -84,15 +84,16 @@ class Executable:
for dep in self.get_dependencies(): for dep in self.get_dependencies():
for common, info in self.common.items(): for common, info in self.common.items():
if common in dep.lower() and dep != info["path"]: if common in dep.lower():
self.change_dependency(dep, info["path"])
print(
f"[*] fixed common dependency in {self.bn}: "
f"{dep} -> {info['path']}"
)
needed.add(common) 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: def fix_dependencies(self, tweaks: dict[str, str]) -> None:
for dep in self.get_dependencies(): for dep in self.get_dependencies():
for cname in tweaks: for cname in tweaks:

View File

@@ -5,7 +5,7 @@ import subprocess
from typing import Optional from typing import Optional
try: try:
import lief import lief # type: ignore
except Exception: except Exception:
pass pass

View File

@@ -4,7 +4,7 @@ from setuptools import setup
setup( setup(
name="cyan", name="cyan",
version="1.4", version="1.4.1",
description="finally, pyzule doesn't suck", description="finally, pyzule doesn't suck",
author="zx", author="zx",
author_email="zx@hrzn.email", author_email="zx@hrzn.email",