mirror of
https://github.com/munki/munki.git
synced 2026-05-07 12:59:32 -05:00
Fix processing of LocalOnlyManifest. Addresses #1270
This commit is contained in:
@@ -298,11 +298,11 @@ func processManifest(
|
||||
}
|
||||
|
||||
// process all included manifests first
|
||||
for manifestName in manifestdata["included_manifests"] as? [String] ?? [] {
|
||||
if manifestName.isEmpty {
|
||||
for includedManifestName in manifestdata["included_manifests"] as? [String] ?? [] {
|
||||
if includedManifestName.isEmpty {
|
||||
continue
|
||||
}
|
||||
let nestedManifestPath = try getManifest(manifestName)
|
||||
let nestedManifestPath = try getManifest(includedManifestName)
|
||||
if stopRequested() {
|
||||
return // maybe should throw a StopRequestedException?
|
||||
}
|
||||
|
||||
@@ -132,7 +132,9 @@ func processLocalOnlyManifest(catalogList: [String], installInfo: inout PlistDic
|
||||
_ = try await processManifest(
|
||||
localOnlyManifest,
|
||||
forKey: key,
|
||||
installInfo: &installInfo
|
||||
installInfo: &installInfo,
|
||||
parentCatalogs: catalogList,
|
||||
manifestName: "LocalOnlyManifest \(localOnlyManifestName)"
|
||||
)
|
||||
if stopRequested() {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user