From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 4A4F01FF2CF for ; Thu, 11 Jul 2024 17:05:58 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 88C6B364FF; Thu, 11 Jul 2024 17:06:20 +0200 (CEST) Message-ID: <7d97f7d9-5f29-4bc0-a679-f8360b6a3437@proxmox.com> Date: Thu, 11 Jul 2024 17:06:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: Proxmox VE development discussion , Christoph Heiss References: <20240710132756.1149508-1-c.heiss@proxmox.com> <20240710132756.1149508-7-c.heiss@proxmox.com> Content-Language: en-US From: Stefan Hanreich In-Reply-To: <20240710132756.1149508-7-c.heiss@proxmox.com> X-SPAM-LEVEL: Spam detection results: 0 AWL 0.639 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: Re: [pve-devel] [PATCH installer 06/14] common: split out installer setup files loading functionality X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" On 7/10/24 15:27, Christoph Heiss wrote: > diff --git a/proxmox-installer-common/src/setup.rs b/proxmox-installer-common/src/setup.rs > index 9131ac9..29137bf 100644 > --- a/proxmox-installer-common/src/setup.rs > +++ b/proxmox-installer-common/src/setup.rs > @@ -163,24 +163,29 @@ pub fn installer_setup(in_test_mode: bool) -> Result<(SetupInfo, LocaleInfo, Run > } else { > crate::RUNTIME_DIR.to_owned() > }; > - let path = PathBuf::from(base_path); > > + load_installer_setup_files(&PathBuf::from(base_path)) > +} > + > +pub fn load_installer_setup_files( > + base_path: &Path, Could use AsRef here since it's public API. In the test specific code we could also use it for parameters, but there it's not really important since it's not public API. _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel