diff options
author | Roland Nagy | 2022-08-09 21:55:20 +0000 |
---|---|---|
committer | Roland Nagy | 2022-08-09 21:55:20 +0000 |
commit | 5c23e7c14f4dd649ad7c5dfc781e7b88a4d2e22f (patch) | |
tree | ea37c496fc50ec1cbbb0d99fdad1e5a842d9e453 | |
parent | ae23f348ff54312a84aba5ced2185a76cf8a2324 (diff) | |
download | aur-5c23e7c14f4dd649ad7c5dfc781e7b88a4d2e22f.tar.gz |
patch what.py
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 17 | ||||
-rw-r--r-- | what.py.patch | 13 |
3 files changed, 31 insertions, 4 deletions
@@ -1,10 +1,11 @@ pkgbase = ciphey pkgdesc = Automated decryption tool pkgver = 5.14.0 - pkgrel = 5 + pkgrel = 6 url = https://github.com/Ciphey/Ciphey arch = any license = MIT + makedepends = patch makedepends = python-setuptools makedepends = python-poetry depends = flake8 @@ -25,6 +26,8 @@ pkgbase = ciphey depends = python-typing_inspect provides = ciphey source = ciphey-5.14.0.tar.gz::https://github.com/Ciphey/Ciphey/archive/refs/tags/5.14.0.tar.gz + source = what.py.patch sha256sums = 42fd5ea5b462ab37cb2e6aed41c254e7ed44bb190fed9a3918e6bdd56d86e10f + sha256sums = 720914463a9004a78ee685a2124c1b1d915609705ef84b1cafdf448d7c796198 pkgname = ciphey @@ -2,7 +2,7 @@ pkgname=ciphey pkgver=5.14.0 -pkgrel=5 +pkgrel=6 pkgdesc="Automated decryption tool" arch=("any") url="https://github.com/Ciphey/Ciphey" @@ -26,15 +26,26 @@ depends=( "python-typing_inspect" ) makedepends=( + "patch" "python-setuptools" "python-poetry" ) provides=("ciphey") -source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz") -sha256sums=("42fd5ea5b462ab37cb2e6aed41c254e7ed44bb190fed9a3918e6bdd56d86e10f") +source=( + "$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz" + "what.py.patch" +) +sha256sums=( + "42fd5ea5b462ab37cb2e6aed41c254e7ed44bb190fed9a3918e6bdd56d86e10f" + "720914463a9004a78ee685a2124c1b1d915609705ef84b1cafdf448d7c796198" +) build() { cd "$srcdir/Ciphey-$pkgver" + cd "ciphey/basemods/Checkers" + patch "what.py" < "$srcdir/what.py.patch" + + cd "$srcdir/Ciphey-$pkgver" poetry build cd dist diff --git a/what.py.patch b/what.py.patch new file mode 100644 index 000000000000..2d50aa211b64 --- /dev/null +++ b/what.py.patch @@ -0,0 +1,13 @@ +--- what.py.bad 2022-08-09 21:45:39.749535519 +0000 ++++ what.py 2022-08-09 21:46:04.392867395 +0000 +@@ -18,8 +18,8 @@ +
+ def check(self, ctext: T) -> Optional[str]:
+ logger.trace("Trying PyWhat checker")
+- returned_regexes = self.id.identify(ctext, api=True)
+- if len(returned_regexes["Regexes"]) > 0:
++ returned_regexes = self.id.identify(ctext)
++ if returned_regexes["Regexes"]:
+
+ matched_regex = returned_regexes["Regexes"][0]["Regex Pattern"]
+
|