[pve-devel] [PATCH] Fix problems with turnkey repository.

Wolfgang Link w.link at proxmox.com
Wed Feb 17 09:12:57 CET 2016


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 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/PVE/APLInfo.pm b/PVE/APLInfo.pm
index f4b30b1..16e60a5 100644
--- a/PVE/APLInfo.pm
+++ b/PVE/APLInfo.pm
@@ -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;
-- 
2.1.4





More information about the pve-devel mailing list