Skip to content

Commit

Permalink
Upgrade lief version to >= 0.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cnheitman committed Aug 9, 2024
1 parent 917e076 commit e4434b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libpastis/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ def _read_binary_infos(file: Path) -> Optional[Tuple[Platform, Arch]]:
return None

# Determine the architecture of the binary
mapping = {lief.ELF.ARCH.x86_64: Arch.X86_64,
lief.ELF.ARCH.i386: Arch.X86,
mapping = {lief.ELF.ARCH.X86_64: Arch.X86_64,
lief.ELF.ARCH.I386: Arch.X86,
lief.ELF.ARCH.ARM: Arch.ARMV7,
lief.ELF.ARCH.AARCH64: Arch.AARCH64}
arch = mapping.get(p.header.machine_type)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"pyzmq",
"psutil",
"aenum",
"lief>=v0.14.0",
"lief>=v0.15.0",
"python-magic",
"click",
"coloredlogs",
Expand Down

0 comments on commit e4434b8

Please sign in to comment.