binwalk: update to 2.4.2.

This commit is contained in:
Duncaen 2024-08-06 19:18:21 +02:00
parent 747a59fa04
commit 98c85069b8
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35
2 changed files with 2 additions and 16 deletions

View File

@ -1,14 +0,0 @@
--- a/src/binwalk/core/version.py
+++ b/src/binwalk/core/version.py
@@ -1,6 +1,10 @@
try:
from importlib import metadata
- get_version = lambda : metadata.version("binwalk")
+ def get_version():
+ try:
+ return metadata.version("binwalk")
+ except metadata.PackageNotFoundError:
+ return "unknown"
except ImportError:
try:
# Running on pre-3.8 Python; use importlib-metadata package

View File

@ -1,6 +1,6 @@
# Template file for 'binwalk'
pkgname=binwalk
version=2.4.1
version=2.4.2
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
@ -11,7 +11,7 @@ maintainer="Duncaen <duncaen@voidlinux.org>"
license="MIT"
homepage="https://github.com/OSPG/binwalk"
distfiles="https://github.com/OSPG/binwalk/archive/v${version}.tar.gz"
checksum=26d13afd3610b39a38a3062a34c05d94dacda3f6f6aa6d1d19e42b61fabe1c8f
checksum=36b11a4d245bce9663c2c17085282eb1012716c9f0f6754497126b1ad25cd4e7
post_extract() {
vsed -i -e 's;/etc/bash_completion.d/%s;%s.bash;' setup.py