From acbd85de2ee348f6b7ff6cef2ae6bfa66eb5fedf Mon Sep 17 00:00:00 2001 From: Gran Date: Thu, 12 May 2022 16:44:06 -0700 Subject: [PATCH] Enable run of create_spec_repo. (#9798) --- scripts/create_spec_repo/Sources/SpecRepoBuilder/main.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/create_spec_repo/Sources/SpecRepoBuilder/main.swift b/scripts/create_spec_repo/Sources/SpecRepoBuilder/main.swift index 180eff5754..91cf48d020 100644 --- a/scripts/create_spec_repo/Sources/SpecRepoBuilder/main.swift +++ b/scripts/create_spec_repo/Sources/SpecRepoBuilder/main.swift @@ -377,7 +377,8 @@ struct SpecRepoBuilder: ParsableCommand { let startDate = Date() var minutes = 0 for pod in specFileDict.depInstallOrder { - var timer: DispatchSourceTimer = { + print("----------\(pod)-----------") + let timer: DispatchSourceTimer = { let t = DispatchSource.makeTimerSource() t.schedule(deadline: .now(), repeating: 60) t.setEventHandler(handler: { @@ -388,7 +389,6 @@ struct SpecRepoBuilder: ParsableCommand { }() timer.resume() var podExitCode: Int32 = 0 - print("----------\(pod)-----------") switch pod { case "Firebase": podExitCode = pushPodspec( @@ -420,3 +420,5 @@ struct SpecRepoBuilder: ParsableCommand { } } } + +SpecRepoBuilder.main()