Commit aa539b10 authored by Simon F's avatar Simon F Committed by Leo
Browse files

testing/thefuck: upgrade to 3.31

parent 6461c5ed
# Contributor: Simon Frankenberger <simon-alpine@fraho.eu>
# Maintainer: Simon Frankenberger <simon-alpine@fraho.eu>
pkgname=thefuck
pkgver=3.30
pkgrel=1
pkgver=3.31
pkgrel=0
pkgdesc="The Fuck is a magnificent app that corrects errors in previous console commands."
url="https://github.com/nvbn/thefuck"
arch="noarch"
......@@ -10,7 +10,8 @@ license="MIT"
depends="py3-colorama py3-six py3-decorator py3-psutil py3-pyte"
makedepends="py3-setuptools"
source="thefuck-$pkgver.tar.gz::https://github.com/nvbn/thefuck/archive/$pkgver.tar.gz
ash.patch"
ash.patch
"
check() {
python3 setup.py check
......@@ -25,5 +26,7 @@ package() {
}
sha512sums="99b270d0aa535673c09e7e932212af4ded5639fcf30ad0aeedc89a54e94c0a072a37883b1a1a56301efb82ea1c72cf53d4dacf2e83edcafcf4fbaa55ecd35f3a thefuck-3.30.tar.gz
3750797396d8bd9bc9eaff30caa6d05edcb3f75a44ac2136f489d0c2e4a8d4cb89d74083b4ef5a4affc112c3c825ffa4e5bf0e4f72b9eec066df4f1501b2f3c3 ash.patch"
sha512sums="
6ba3546e44311fc5c91513e87eb3de3636369fa5c7aff7b78e24f65f3c7bee5a5ee1405e442558cfb0b2b643d21705ce28943afc3fdac717e038cd980c87966d thefuck-3.31.tar.gz
648186326bd3a21180b3dade99f7015518319a44ae51a5b55667595b868ed342d7e337ea4a12889a40381f75dc6d1005b9e55cf6b0a6e472d019720835cf7836 ash.patch
"
......@@ -9,7 +9,7 @@ default shell (ash).
def app_alias(self, alias_name):
return """alias {0}='eval "$(TF_ALIAS={0} PYTHONIOENCODING=utf-8 """ \
- """thefuck "$(fc -ln -1)")"'""".format(alias_name)
+ """thefuck "$(sed -n '\"'x;\\$p'\"' /home/build/.ash_history)")'""".format(alias_name)
+ """thefuck "$(sed -n '\"'x;\\$p'\"' $HISTFILE)")"'""".format(alias_name)
def instant_mode_alias(self, alias_name):
warn("Instant mode not supported by your shell")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment