binwalk: update to 2.4.2.
This commit is contained in:
parent
747a59fa04
commit
98c85069b8
2 changed files with 2 additions and 16 deletions
|
@ -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
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'binwalk'
|
# Template file for 'binwalk'
|
||||||
pkgname=binwalk
|
pkgname=binwalk
|
||||||
version=2.4.1
|
version=2.4.2
|
||||||
revision=1
|
revision=1
|
||||||
build_style=python3-module
|
build_style=python3-module
|
||||||
hostmakedepends="python3-setuptools"
|
hostmakedepends="python3-setuptools"
|
||||||
|
@ -11,7 +11,7 @@ maintainer="Duncaen <duncaen@voidlinux.org>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="https://github.com/OSPG/binwalk"
|
homepage="https://github.com/OSPG/binwalk"
|
||||||
distfiles="https://github.com/OSPG/binwalk/archive/v${version}.tar.gz"
|
distfiles="https://github.com/OSPG/binwalk/archive/v${version}.tar.gz"
|
||||||
checksum=26d13afd3610b39a38a3062a34c05d94dacda3f6f6aa6d1d19e42b61fabe1c8f
|
checksum=36b11a4d245bce9663c2c17085282eb1012716c9f0f6754497126b1ad25cd4e7
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
vsed -i -e 's;/etc/bash_completion.d/%s;%s.bash;' setup.py
|
vsed -i -e 's;/etc/bash_completion.d/%s;%s.bash;' setup.py
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue