Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing ARGV.next and incomplete detection of LaunchDaemons #19

Closed
wants to merge 2 commits into from

Conversation

overhacked
Copy link

  1. Not sure what change to Homebrew or Ruby caused this issue, but running brew-pkg results in an error when accessing ARGV that Array has no method next. Fix ARGV.next method not found #16 already partially addresses the missing ARGV.next errors, but it missed one. All Fix ARGV.next method not found #16's changes are included in this PR.
  2. brew-pkg detects formulae with LaunchDaemons by testing for Formula.plist, but a LaunchDaemon can also be defined by Formula.service. Changed the conditional to check for existence of either. The rest of the LaunchDaemon writing code works as-is.

Already partially addressed in timsutton#16, but that
PR missed one call to the non-existent `Array.next`.
Current behavior is to check for the existence of
`Formula.plist` to see if there is a LaunchDaemon to be
included in the package, but `Formula.service` can also
define a LaunchDaemon. Check for either, and the rest of the
conditional code works as-is.
@overhacked overhacked closed this May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant