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

Update Rocket.download.recipe #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

paul-cossey
Copy link

Hi, @Jaharmi

The Rocket download recipe is currently failing with this error message

The following recipes failed:
    Rocket.munki.recipe
        Error in com.github.jaharmi.munki.Rocket: Processor: URLDownloader: Error: curl: (56) The requested URL returned error: 404

This PR adds in a Referer and a User Agent.

Output from a successful -v run

autopkg run -v Rocket.munki.recipe
Looking for com.github.jaharmi.download.Rocket...
Did not find com.github.jaharmi.download.Rocket in recipe map
Rebuilding recipe map with current working directories...
Looking for com.github.jaharmi.download.Rocket...
Found com.github.jaharmi.download.Rocket in recipe map
**load_recipe time: 0.007213082999442122
Processing Rocket.munki.recipe...
WARNING: Rocket.munki.recipe is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
URLDownloader
URLDownloader: Storing new Last-Modified header: Fri, 28 Apr 2023 02:38:08 GMT
URLDownloader: Storing new ETag header: "f951ff2724c0a48870c1a621ea317244-2"
URLDownloader: Downloaded /Users/paul.cossey/Library/AutoPkg/Cache/com.github.jaharmi.munki.Rocket/downloads/Rocket.dmg
EndOfCheckPhase
CodeSignatureVerifier
CodeSignatureVerifier: Mounted disk image /Users/paul.cossey/Library/AutoPkg/Cache/com.github.jaharmi.munki.Rocket/downloads/Rocket.dmg
CodeSignatureVerifier: Verifying code signature...
CodeSignatureVerifier: Deep verification enabled...
CodeSignatureVerifier: Strict verification not defined. Using codesign defaults...
CodeSignatureVerifier: /private/tmp/dmg.i5WB6r/Rocket.app: valid on disk
CodeSignatureVerifier: /private/tmp/dmg.i5WB6r/Rocket.app: satisfies its Designated Requirement
CodeSignatureVerifier: /private/tmp/dmg.i5WB6r/Rocket.app: explicit requirement satisfied
CodeSignatureVerifier: Signature is valid
Versioner
Versioner: Mounted disk image /Users/paul.cossey/Library/AutoPkg/Cache/com.github.jaharmi.munki.Rocket/downloads/Rocket.dmg
Versioner: Found version 1.9.3 in file /Users/paul.cossey/Library/AutoPkg/Cache/com.github.jaharmi.munki.Rocket/downloads/Rocket.dmg/Rocket.app/Contents/Info.plist
MunkiImporter
MunkiImporter: Using repo lib: AutoPkgLib
MunkiImporter:         plugin: FileRepo
MunkiImporter:           repo: /Users/Shared/munki_repo
MunkiImporter: Copied pkginfo to: /Users/Shared/munki_repo/pkgsinfo/apps/Rocket/Rocket-1.9.3.plist
MunkiImporter:            pkg to: /Users/Shared/munki_repo/pkgs/apps/Rocket/Rocket-1.9.3.dmg
Receipt written to /Users/paul.cossey/Library/AutoPkg/Cache/com.github.jaharmi.munki.Rocket/receipts/Rocket.munki-receipt-20240926-102459.plist

The following new items were downloaded:
    Download Path                                                                                  
    -------------                                                                                  
    /Users/paul.cossey/Library/AutoPkg/Cache/com.github.jaharmi.munki.Rocket/downloads/Rocket.dmg  

The following new items were imported into Munki:
    Name    Version  Catalogs  Pkginfo Path                    Pkg Repo Path                 Icon Repo Path  
    ----    -------  --------  ------------                    -------------                 --------------  
    Rocket  1.9.3    testing   apps/Rocket/Rocket-1.9.3.plist  apps/Rocket/Rocket-1.9.3.dmg

Adds in a user-agent and Referer
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