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 ne recipes and add ARCH input variable #119

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

Conversation

homebysix
Copy link
Member

This PR adjusts the ne download to support the new filename pattern, which is suffixed with either Intel or AppleSilicon.

Verbose recipe run with default (Intel) architecture:

% autopkg run -vvq 'ne/ne.download.recipe'
Processing ne/ne.download.recipe...
WARNING: ne/ne.download.recipe is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
URLTextSearcher
{'Input': {'re_pattern': '(?P<url>[^"]+-(?P<version>[0-9\\.]+)-Intel\\.dmg)',
           'url': 'http://ne.di.unimi.it'}}
URLTextSearcher: No value supplied for result_output_var_name, setting default value of: match
URLTextSearcher: Found matching text (url): ne-3.3.3-Intel.dmg
URLTextSearcher: Found matching text (version): 3.3.3
URLTextSearcher: Found matching text (match): ne-3.3.3-Intel.dmg
{'Output': {'match': 'ne-3.3.3-Intel.dmg',
            'url': 'ne-3.3.3-Intel.dmg',
            'version': '3.3.3'}}
URLDownloader
{'Input': {'filename': 'ne.dmg',
           'url': 'http://ne.di.unimi.it/ne-3.3.3-Intel.dmg'}}
URLDownloader: No value supplied for prefetch_filename, setting default value of: False
URLDownloader: No value supplied for CHECK_FILESIZE_ONLY, setting default value of: False
URLDownloader: Storing new Last-Modified header: Fri, 20 Oct 2023 05:45:42 GMT
URLDownloader: Storing new ETag header: "fb9ca-6081f62173a08"
URLDownloader: Downloaded ~/Library/AutoPkg/Cache/com.github.jleggat.ne.download/downloads/ne.dmg
{'Output': {'download_changed': True,
            'etag': '"fb9ca-6081f62173a08"',
            'last_modified': 'Fri, 20 Oct 2023 05:45:42 GMT',
            'pathname': '~/Library/AutoPkg/Cache/com.github.jleggat.ne.download/downloads/ne.dmg',
            'url_downloader_summary_result': {'data': {'download_path': '~/Library/AutoPkg/Cache/com.github.jleggat.ne.download/downloads/ne.dmg'},
                                              'summary_text': 'The following '
                                                              'new items were '
                                                              'downloaded:'}}}
EndOfCheckPhase
{'Input': {}}
{'Output': {}}
Receipt written to ~/Library/AutoPkg/Cache/com.github.jleggat.ne.download/receipts/ne.download-receipt-20241226-195621.plist

The following new items were downloaded:
    Download Path
    -------------
    ~/Library/AutoPkg/Cache/com.github.jleggat.ne.download/downloads/ne.dmg

Verbose recipe run with Apple Silicon architecture:

% autopkg run -vvq 'ne/ne.download.recipe' -k ARCH=AppleSilicon
Processing ne/ne.download.recipe...
WARNING: ne/ne.download.recipe is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
URLTextSearcher
{'Input': {'re_pattern': '(?P<url>[^"]+-(?P<version>[0-9\\.]+)-AppleSilicon\\.dmg)',
           'url': 'http://ne.di.unimi.it'}}
URLTextSearcher: No value supplied for result_output_var_name, setting default value of: match
URLTextSearcher: Found matching text (url): ne-3.3.3-AppleSilicon.dmg
URLTextSearcher: Found matching text (version): 3.3.3
URLTextSearcher: Found matching text (match): ne-3.3.3-AppleSilicon.dmg
{'Output': {'match': 'ne-3.3.3-AppleSilicon.dmg',
            'url': 'ne-3.3.3-AppleSilicon.dmg',
            'version': '3.3.3'}}
URLDownloader
{'Input': {'filename': 'ne.dmg',
           'url': 'http://ne.di.unimi.it/ne-3.3.3-AppleSilicon.dmg'}}
URLDownloader: No value supplied for prefetch_filename, setting default value of: False
URLDownloader: No value supplied for CHECK_FILESIZE_ONLY, setting default value of: False
URLDownloader: Storing new Last-Modified header: Fri, 20 Oct 2023 04:47:25 GMT
URLDownloader: Storing new ETag header: "fb424-6081e91a3eaf7"
URLDownloader: Downloaded ~/Library/AutoPkg/Cache/com.github.jleggat.ne.download/downloads/ne.dmg
{'Output': {'download_changed': True,
            'etag': '"fb424-6081e91a3eaf7"',
            'last_modified': 'Fri, 20 Oct 2023 04:47:25 GMT',
            'pathname': '~/Library/AutoPkg/Cache/com.github.jleggat.ne.download/downloads/ne.dmg',
            'url_downloader_summary_result': {'data': {'download_path': '~/Library/AutoPkg/Cache/com.github.jleggat.ne.download/downloads/ne.dmg'},
                                              'summary_text': 'The following '
                                                              'new items were '
                                                              'downloaded:'}}}
EndOfCheckPhase
{'Input': {}}
{'Output': {}}
Receipt written to ~/Library/AutoPkg/Cache/com.github.jleggat.ne.download/receipts/ne.download-receipt-20241226-195634.plist

The following new items were downloaded:
    Download Path
    -------------
    ~/Library/AutoPkg/Cache/com.github.jleggat.ne.download/downloads/ne.dmg

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