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

Parsing BBEdit Sparkle feed causes error #194

Open
workflowsguy opened this issue Jun 19, 2022 · 3 comments
Open

Parsing BBEdit Sparkle feed causes error #194

workflowsguy opened this issue Jun 19, 2022 · 3 comments
Assignees

Comments

@workflowsguy
Copy link

Describe the bug
Trying to create a recipe for BBEdit by dropping the app on RR fails with the following

 Processing: /Volumes/Macintosh HD/Applications/BBEdit.app
Input path looks like an app.
Validating app...
    This app seems valid
Getting bundle name...
    Bundle name is: BBEdit
Getting bundle identifier...
    Bundle identifier is: com.barebones.bbedit
Checking for a Sparkle feed...
    Sparkle feed is: https://versioncheck.barebones.com/BBEdit.xml
Getting information from Sparkle feed...
[ERROR] Recipe Robot exploded with unexpected error: max() arg is an empty sequence
Traceback (most recent call last):
  File "/Applications/Recipe Robot.app/Contents/Resources/scripts/recipe-robot", line 92, in main
    process_input_path(facts)
  File "/Applications/Recipe Robot.app/Contents/Resources/scripts/recipe_robot_lib/inspect.py", line 177, in process_input_path
    facts = inspect_func(input_path, args, facts)
  File "/Applications/Recipe Robot.app/Contents/Resources/scripts/recipe_robot_lib/inspect.py", line 320, in inspect_app
    facts = inspect_sparkle_feed_url(sparkle_feed, args, facts)
  File "/Applications/Recipe Robot.app/Contents/Resources/scripts/recipe_robot_lib/inspect.py", line 2035, in inspect_sparkle_feed_url
    latest_info = max(sparkle_info, key=lambda x: APLooseVersion(x[key]))
ValueError: max() arg is an empty sequence

To Reproduce
Steps to reproduce the behavior:

  1. Dropping BBEdit.app on RR's Gui area
  2. See error above

Expected behavior
RR should create the individual recipe parts

Desktop (please complete the following information):

  • macOS: 10.13.6
  • Recipe Robot Version: 2.2.0
  • autopkg version: 2.4.1
  • /usr/local/autopkg/python --version: 3.7.5
@homebysix
Copy link
Owner

A good catch — BareBones doesn't actually use Sparkle for their update check XML. I might adjust Recipe Robot to accommodate their format.

However, I'd suggest that most BareBones apps already have recipes in the AutoPkg org on GitHub. BBEdit, for example. Still, good for RR to know what to do in case a new app is released.

@workflowsguy
Copy link
Author

Thank you.

I am aware that a recipe for BBedit already exists. However, it fails to download anything.
(I had reported an issue about this and just checked, only to see that you had replied. This somehow escaped my notice; I am sorry about that.)

This is the reason I was trying to create a separate recipe for it with RR.

@homebysix
Copy link
Owner

RR 2.3.0 now contains special handling for Bare Bones appcast feeds. However I'm getting a ditto: Couldn't read PKZip signature error when running the generated download recipes in AutoPkg 3.0rc2. I'll look more into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants