Skip to content

Commit

Permalink
Fix SPM generator skipping needed repos
Browse files Browse the repository at this point in the history
Happened if multiple directories were available for the same source
  • Loading branch information
david-swift committed Mar 9, 2024
1 parent 7419487 commit b1555f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spm/flatpak-spm-generator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ for dependency in workspaceState.object.dependencies {
"dest": ".build/checkouts/\(subpath)"
},
""")
if let folder = repositoriesContent.first(where: { $0.hasPrefix(subpath + "-") }) {
let folders = repositoriesContent.filter { $0.hasPrefix(subpath + "-") }
for folder in folders {
shellContent.append("""
mkdir ./\(folder)
Expand Down

0 comments on commit b1555f6

Please sign in to comment.