Ver código fonte

Prefer binary unzip to work around pure perl unzip errors

Daniel Gempesaw 10 anos atrás
pai
commit
5ca06de251
1 arquivos alterados com 5 adições e 2 exclusões
  1. 5 2
      lib/Selenium/Firefox/Profile.pm

+ 5 - 2
lib/Selenium/Firefox/Profile.pm

@@ -226,9 +226,12 @@ sub _install_extensions {
         # .xpi in the /extensions/ folder and change the filename to
         # its id, which is found in the install.rdf in the root of the
         # zip.
-        my $ae = Archive::Extract->new( archive => $_,
-                                        type => "zip");
+        my $ae = Archive::Extract->new(
+            archive => $_,
+            type => "zip"
+        );
 
+        $Archive::Extract::PREFER_BIN = 1;
         my $tempDir = File::Temp->newdir();
         $ae->extract( to => $tempDir );
         my $install = $ae->extract_path();