File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -13857,7 +13857,7 @@ sub uncompress_archive_cmd { # {{{1
13857
13857
$missing = "rpm2cpio";
13858
13858
}
13859
13859
} else {
13860
- $missing = "bzip2 ";
13860
+ $missing = "cpio ";
13861
13861
}
13862
13862
} elsif ($archive_file =~ /\.(whl|zip)$/i and !$ON_WINDOWS) {
13863
13863
if (external_utility_exists("unzip")) {
@@ -13930,13 +13930,17 @@ sub read_list_file { # {{{1
13930
13930
sub external_utility_exists { # {{{1
13931
13931
my $exe = shift @_;
13932
13932
13933
+ # remove args, if any
13934
+ my $leading_exe = $exe;
13935
+ $leading_exe =~ s/^(\S+)\s*.*?$/$1/;
13936
+
13933
13937
my $success = 0;
13934
13938
if ($ON_WINDOWS) {
13935
13939
$success = 1 unless system $exe . ' > nul';
13936
13940
} else {
13937
13941
$success = 1 unless system $exe . ' >/dev/null 2>&1';
13938
13942
if (!$success) {
13939
- $success = 1 unless system "which" . " $exe " . ' >/dev/null 2>&1';
13943
+ $success = 1 unless system "which" . " $leading_exe " . ' >/dev/null 2>&1';
13940
13944
}
13941
13945
}
13942
13946
Original file line number Diff line number Diff line change @@ -13847,7 +13847,7 @@ sub uncompress_archive_cmd { # {{{1
13847
13847
$missing = "rpm2cpio";
13848
13848
}
13849
13849
} else {
13850
- $missing = "bzip2 ";
13850
+ $missing = "cpio ";
13851
13851
}
13852
13852
} elsif ($archive_file =~ /\.(whl|zip)$/i and !$ON_WINDOWS) {
13853
13853
if (external_utility_exists("unzip")) {
@@ -13920,13 +13920,17 @@ sub read_list_file { # {{{1
13920
13920
sub external_utility_exists { # {{{1
13921
13921
my $exe = shift @_;
13922
13922
13923
+ # remove args, if any
13924
+ my $leading_exe = $exe;
13925
+ $leading_exe =~ s/^(\S+)\s*.*?$/$1/;
13926
+
13923
13927
my $success = 0;
13924
13928
if ($ON_WINDOWS) {
13925
13929
$success = 1 unless system $exe . ' > nul';
13926
13930
} else {
13927
13931
$success = 1 unless system $exe . ' >/dev/null 2>&1';
13928
13932
if (!$success) {
13929
- $success = 1 unless system "which" . " $exe " . ' >/dev/null 2>&1';
13933
+ $success = 1 unless system "which" . " $leading_exe " . ' >/dev/null 2>&1';
13930
13934
}
13931
13935
}
13932
13936
You can’t perform that action at this time.
0 commit comments