Skip to content

Commit

Permalink
Additional build deps (#1215)
Browse files Browse the repository at this point in the history
* Update build deps

* lint
  • Loading branch information
mlw authored Oct 31, 2023
1 parent c5c6037 commit 64bb34b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Source/santactl/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ santa_unit_test(
"//Source/common:SNTFileInfo",
"//Source/common:SNTLogging",
"//Source/common:SNTRule",
"//Source/common:SNTStoredEvent",
"//Source/common:SNTXPCBundleServiceInterface",
"//Source/common:SNTXPCControlInterface",
"@MOLCertificate",
"@MOLCodesignChecker",
Expand Down
6 changes: 4 additions & 2 deletions Source/santactl/Commands/SNTCommandFileInfo.m
Original file line number Diff line number Diff line change
Expand Up @@ -731,8 +731,10 @@ - (void)printInfoForFile:(NSString *)path {
}];

int secondsToWait = 30;
if (dispatch_semaphore_wait(sema, dispatch_time(DISPATCH_TIME_NOW, secondsToWait * NSEC_PER_SEC))) {
fprintf(stderr, "The bundle service did not finish collecting hashes within %d seconds\n", secondsToWait);
if (dispatch_semaphore_wait(sema,
dispatch_time(DISPATCH_TIME_NOW, secondsToWait * NSEC_PER_SEC))) {
fprintf(stderr, "The bundle service did not finish collecting hashes within %d seconds\n",
secondsToWait);
}

outputDict[kBundleInfo] = bundleInfo;
Expand Down

0 comments on commit 64bb34b

Please sign in to comment.