From d87262dd706fec50cd150aab3e93883b6337466d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 20:56:41 +0100 Subject: gentoo resync : 14.07.2018 --- .../autojump-22.2.4-fix-__aj_error-typo.patch | 22 ------- .../autojump-22.2.4-fix-autojump.fish-bugs.patch | 67 ---------------------- 2 files changed, 89 deletions(-) delete mode 100644 app-shells/autojump/files/autojump-22.2.4-fix-__aj_error-typo.patch delete mode 100644 app-shells/autojump/files/autojump-22.2.4-fix-autojump.fish-bugs.patch (limited to 'app-shells/autojump/files') diff --git a/app-shells/autojump/files/autojump-22.2.4-fix-__aj_error-typo.patch b/app-shells/autojump/files/autojump-22.2.4-fix-__aj_error-typo.patch deleted file mode 100644 index 6a9ac3c83c8e..000000000000 --- a/app-shells/autojump/files/autojump-22.2.4-fix-__aj_error-typo.patch +++ /dev/null @@ -1,22 +0,0 @@ -From d188d7e6757a4d0cad619b6d5ab729fdc59b1593 Mon Sep 17 00:00:00 2001 -From: Scott Olson -Date: Mon, 6 Jul 2015 23:12:35 -0400 -Subject: [PATCH] Fix typo (__aj_error -> __aj_err). - ---- - bin/autojump.fish | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/bin/autojump.fish b/bin/autojump.fish -index ead7ea1..b16ef01 100644 ---- a/bin/autojump.fish -+++ b/bin/autojump.fish -@@ -91,7 +91,7 @@ function jo - case cygwin - cygstart "" (cygpath -w -a (pwd)) - case '*' -- __aj_error "Unknown operating system: \"$OSTYPE\"" -+ __aj_err "Unknown operating system: \"$OSTYPE\"" - end - else - __aj_err "autojump: directory '"$argv"' not found" diff --git a/app-shells/autojump/files/autojump-22.2.4-fix-autojump.fish-bugs.patch b/app-shells/autojump/files/autojump-22.2.4-fix-autojump.fish-bugs.patch deleted file mode 100644 index 6048ca989376..000000000000 --- a/app-shells/autojump/files/autojump-22.2.4-fix-autojump.fish-bugs.patch +++ /dev/null @@ -1,67 +0,0 @@ -From f09d23e30d3159db18872a3e8f8f579ed9e77231 Mon Sep 17 00:00:00 2001 -From: David Frascone -Date: Tue, 9 Jun 2015 14:32:38 -0600 -Subject: [PATCH] Fixed some bugs in fish script - -OSTYPE was not being set correctly. It is in bash, not sh. - Since the value is unlikely to change, I read it once and - stored it globally -Test logic was backward in jo function, causing error to always - be printed, unless you did NOT specify a directory name. ---- - bin/autojump.fish | 20 ++++++++++++-------- - 1 file changed, 12 insertions(+), 8 deletions(-) - -diff --git a/bin/autojump.fish b/bin/autojump.fish -index 2cf5001..19cb27e 100644 ---- a/bin/autojump.fish -+++ b/bin/autojump.fish -@@ -5,6 +5,11 @@ if test -d ~/.autojump - set -x PATH ~/.autojump/bin $PATH - end - -+# Set ostype, if not set -+if not set -q OSTYPE -+ set -gx OSTYPE (bash -c 'echo ${OSTYPE}') -+end -+ - - # enable tab completion - complete -x -c j -a '(autojump --complete (commandline -t))' -@@ -34,7 +39,7 @@ end - # misc helper functions - function __aj_err - # TODO(ting|#247): set error file location -- echo $argv 1>&2; false -+ echo -e $argv 1>&2; false - end - - # default autojump command -@@ -73,11 +78,7 @@ end - function jo - set -l output (autojump $argv) - if test -d "$output" -- __aj_err "autojump: directory '"$argv"' not found" -- __aj_err "\n$output\n" -- __aj_err "Try `autojump --help` for more information." -- else -- switch (sh -c 'echo ${OSTYPE}') -+ switch $OSTYPE - case 'linux*' - xdg-open (autojump $argv) - case 'darwin*' -@@ -85,9 +86,12 @@ function jo - case cygwin - cygstart "" (cygpath -w -a (pwd)) - case '*' -- __aj_error "Unknown operating system: '"$OSTYPE"'" -+ __aj_error "Unknown operating system: \"$OSTYPE\"" - end -- echo end -+ else -+ __aj_err "autojump: directory '"$argv"' not found" -+ __aj_err "\n$output\n" -+ __aj_err "Try `autojump --help` for more information." - end - end - -- cgit v1.2.3