psh-1.8.1-r3-array-ref-deprecated.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From fec038344e05b4fe1b369a979b9ab224343297dd Mon Sep 17 00:00:00 2001
  2. From: r <rocky@gnu.org>
  3. Date: Sun, 25 Mar 2012 18:17:45 -0400
  4. Subject: [PATCH] Get rid of 'Using an array as a reference is deprecated in
  5. Psh/StrategyBunch.pm'
  6. ---
  7. lib/Psh/Strategy/Darwin_apps.pm | 2 +-
  8. lib/Psh/Strategy/Executable.pm | 2 +-
  9. 2 files changed, 2 insertions(+), 2 deletions(-)
  10. diff --git a/lib/Psh/Strategy/Darwin_apps.pm b/lib/Psh/Strategy/Darwin_apps.pm
  11. index cbcbb1d..8c4879e 100644
  12. --- a/lib/Psh/Strategy/Darwin_apps.pm
  13. +++ b/lib/Psh/Strategy/Darwin_apps.pm
  14. @@ -44,7 +44,7 @@ sub _recursive_search {
  15. sub applies {
  16. - my $com= @{$_[2]}->[0];
  17. + my $com= $_[2]->[0];
  18. if ($com !~ m/$Psh::which_regexp/) { return ''; }
  19. my $path=$ENV{APP_PATH}||'/Applications';
  20. my @path= split /:/, $path;
  21. diff --git a/lib/Psh/Strategy/Executable.pm b/lib/Psh/Strategy/Executable.pm
  22. index 7d09119..7767082 100644
  23. --- a/lib/Psh/Strategy/Executable.pm
  24. +++ b/lib/Psh/Strategy/Executable.pm
  25. @@ -24,7 +24,7 @@ sub runs_before {
  26. }
  27. sub applies {
  28. - my $com= @{$_[2]}->[0];
  29. + my $com= $_[2]->[0];
  30. my $executable= Psh::Util::which($com);
  31. return $executable if defined $executable;
  32. return '';