def METHOD_NAME(self):
    """Calls makepkginfo to create an installs array."""
    faux_root = ""
    if self.env.get("faux_root"):
        faux_root = self.env["faux_root"].rstrip("/")
    args = ["/usr/local/munki/makepkginfo"]
    for item in self.env["installs_item_paths"]:
        args.extend(["-f", faux_root + item])
    # Call makepkginfo.
    try:
        proc = subprocess.Popen(
            args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=False
        )
        (out, err) = proc.communicate()
    except OSError as err:
        raise ProcessorError(
            f"makepkginfo execution failed with error code {err.errno}: "
            f"{err.strerror}"
        )
    if proc.returncode != 0:
        raise ProcessorError(f"creating pkginfo failed: {err.decode()}")
    # Get pkginfo from output plist.
    pkginfo = plistlib.loads(out)
    installs_array = pkginfo.get("installs", [])
    if faux_root:
        for item in installs_array:
            if item["path"].startswith(faux_root):
                item["path"] = item["path"][len(faux_root) :]
            self.output(f"Created installs item for {item['path']}")
            # If key derive_minimum_os_version has a value, try to get the minosversion
            if self.env.get("derive_minimum_os_version"):
                if item.get("minosversion"):
                    # Set self.env["minimum_os_version"] if not set
                    if "minimum_os_version" not in self.env:
                        self.env["minimum_os_version"] = item["minosversion"]
                        self.output(
                            "Derived minimum os version as: "
                            f"{self.env['minimum_os_version']}"
                        )
                    else:
                        # Compare any subsequent values of item['minosversion']
                        # against self.env["minimum_os_version"] setting
                        # self.env["minimum_os_version"] to the highest minimum
                        if APLooseVersion(item["minosversion"]) >= APLooseVersion(
                            self.env["minimum_os_version"]
                        ):
                            self.output(
                                "Setting minimum os version to: "
                                f"{item['minosversion']}, as greater than prior "
                                f"value of: {self.env['minimum_os_version']}"
                            )
                            self.env["minimum_os_version"] = item["minosversion"]
                        if APLooseVersion(item["minosversion"]) <= APLooseVersion(
                            self.env["minimum_os_version"]
                        ):
                            self.output(
                                f"Minimum os version: {item['minosversion']}, "
                                "is lower than prior value of: "
                                f"{self.env['minimum_os_version']}... skipping..."
                            )
    if "version_comparison_key" in self.env:
        for item in installs_array:
            cmp_key = None
            # If it's a string, set it for all installs items
            if isinstance(self.env["version_comparison_key"], str):
                cmp_key = self.env["version_comparison_key"]
            # It it's a dict, find if there's a key that matches a path
            elif isinstance(self.env["version_comparison_key"], NSDictionary):
                for path, key in list(self.env["version_comparison_key"].items()):
                    if path == item["path"]:
                        cmp_key = key
            if cmp_key:
                # Check that we really have this key available to compare
                if cmp_key in item:
                    item["version_comparison_key"] = cmp_key
                else:
                    raise ProcessorError(
                        f"version_comparison_key '{cmp_key}' could not be found in "
                        f"the installs item for path '{item['path']}'"
                    )
    if "additional_pkginfo" not in self.env:
        self.env["additional_pkginfo"] = {}
    self.env["additional_pkginfo"]["installs"] = installs_array
    # If minimum_os_version has a value, add to additional_pkginfo
    if self.env.get("minimum_os_version"):
        self.env["additional_pkginfo"]["minimum_os_version"] = self.env[
            "minimum_os_version"
        ]