diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-shells/psh/files | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-shells/psh/files')
-rw-r--r-- | app-shells/psh/files/psh-1.8.1-r3-array-ref-deprecated.patch | 37 | ||||
-rw-r--r-- | app-shells/psh/files/psh-1.8.1-r3-defined-array.patch | 11 |
2 files changed, 48 insertions, 0 deletions
diff --git a/app-shells/psh/files/psh-1.8.1-r3-array-ref-deprecated.patch b/app-shells/psh/files/psh-1.8.1-r3-array-ref-deprecated.patch new file mode 100644 index 000000000000..13c497064ee1 --- /dev/null +++ b/app-shells/psh/files/psh-1.8.1-r3-array-ref-deprecated.patch @@ -0,0 +1,37 @@ +From fec038344e05b4fe1b369a979b9ab224343297dd Mon Sep 17 00:00:00 2001 +From: r <rocky@gnu.org> +Date: Sun, 25 Mar 2012 18:17:45 -0400 +Subject: [PATCH] Get rid of 'Using an array as a reference is deprecated in + Psh/StrategyBunch.pm' + +--- + lib/Psh/Strategy/Darwin_apps.pm | 2 +- + lib/Psh/Strategy/Executable.pm | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/lib/Psh/Strategy/Darwin_apps.pm b/lib/Psh/Strategy/Darwin_apps.pm +index cbcbb1d..8c4879e 100644 +--- a/lib/Psh/Strategy/Darwin_apps.pm ++++ b/lib/Psh/Strategy/Darwin_apps.pm +@@ -44,7 +44,7 @@ sub _recursive_search { + + + sub applies { +- my $com= @{$_[2]}->[0]; ++ my $com= $_[2]->[0]; + if ($com !~ m/$Psh::which_regexp/) { return ''; } + my $path=$ENV{APP_PATH}||'/Applications'; + my @path= split /:/, $path; +diff --git a/lib/Psh/Strategy/Executable.pm b/lib/Psh/Strategy/Executable.pm +index 7d09119..7767082 100644 +--- a/lib/Psh/Strategy/Executable.pm ++++ b/lib/Psh/Strategy/Executable.pm +@@ -24,7 +24,7 @@ sub runs_before { + } + + sub applies { +- my $com= @{$_[2]}->[0]; ++ my $com= $_[2]->[0]; + my $executable= Psh::Util::which($com); + return $executable if defined $executable; + return ''; diff --git a/app-shells/psh/files/psh-1.8.1-r3-defined-array.patch b/app-shells/psh/files/psh-1.8.1-r3-defined-array.patch new file mode 100644 index 000000000000..660ca34daf44 --- /dev/null +++ b/app-shells/psh/files/psh-1.8.1-r3-defined-array.patch @@ -0,0 +1,11 @@ +--- a/lib/Psh.pm 2007-07-21 16:40:44.000000000 +1200 ++++ b/lib/Psh.pm 2015-07-18 05:30:29.840928282 +1200 +@@ -367,7 +367,7 @@ + + sub defined_and_nonempty + { +- if (!defined(@_)) { return 0; } ++ if (!@_) { return 0; } + if (scalar(@_) == 0) { return 0; } + + if (scalar(@_) == 1) { |