Fix for installer_choices_xml for pkg installs

This commit is contained in:
Greg Neagle
2025-07-26 09:58:29 -07:00
parent 8fd09d9369
commit ddded786b3

View File

@@ -199,7 +199,7 @@ func install(_ pkgpath: String, options: PlistDict = [:]) async -> (Int, Bool) {
}
var arguments = ["-verboseR", "-pkg", resolvedPkgPath, "-target", "/"]
if let choicesXML = options["installer_choices_xml"] as? PlistDict,
if let choicesXML = options["installer_choices_xml"] as? [PlistDict],
let tempDir = TempDir.shared.path
{
let choicesXMLPath = (tempDir as NSString).appendingPathComponent("choices.xml")