]> git.proxmox.com Git - pve-manager.git/commitdiff
Fix problems with turnkey repository.
authorWolfgang Link <w.link@proxmox.com>
Wed, 17 Feb 2016 08:12:57 +0000 (09:12 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 18 Feb 2016 05:34:41 +0000 (06:34 +0100)
To prevent that one time Net:SSL and an outer time IO::Socket::SSL is loaded,
ensure that always use the same socket class.

We load the the Net:SSL in AccessControl.pm if we call pveupdate,
but if we call pveam update this module is not loaded an so the default is used (IO::Socket::SSL).

PVE/APLInfo.pm

index f4b30b116bf14f4fb2119b6602cd404a194a3901..16e60a5f66b012549f4c29138cb340174e73658d 100644 (file)
@@ -263,6 +263,9 @@ sub update {
 
     import_gpg_keys();
 
+    # ensure that always use the same socket class
+    local $ENV{PERL_NET_HTTPS_SSL_SOCKET_CLASS} = "IO::Socket::SSL";
+
     # this code works for ftp and http
     # always use passive ftp
     local $ENV{FTP_PASSIVE} = 1;