Skip to content

Latest LibreOffice.download.recipe failing due to version mismatch b/w tested release notes page and download version available #279

Open
@fseesink

Description

@fseesink

Updated my Munki repos including the LibreOffice recipes after noticing it wasn't pulling latest.

But new version is failing. Digging into recipe, I see it does a regex on https://www.libreoffice.org/download/release-notes/

That page shows the latest version as 24.2.

So the final URL provided is

https://download.documentfoundation.org/libreoffice/stable/24.2/mac/x86_64/LibreOffice_24.2_MacOS_x86-64.dmg

However, if you visit the actual site, you'll see the latest is actually 24.2.1, and at least on that site, the URL is then

https://www.libreoffice.org/donate/dl/mac-x86_64/24.2.1/en-US/LibreOffice_24.2.1_MacOS_x86-64.dmg

And if I manually adjust the earlier URL to

https://download.documentfoundation.org/libreoffice/stable/24.2.1/mac/x86_64/LibreOffice_24.2.1_MacOS_x86-64.dmg

that does, in fact, work.

So there appears to be an issue where the release notes page isn't being maintained/matching the actual version on the download page of the site, causing the error.

Here is the output from running autopkg run -vv LibreOffice.munki.recipe in case it helps:

autopkg run -vv LibreOffice.munki.recipe                                                                                   ─╯
Processing LibreOffice.munki.recipe...
CreateLibreOfficeAuxArchName
{'Input': {'arch_name': 'x86_64'}}
{'Output': {'aux_arch_name': 'x86-64'}}
URLTextSearcher
{'Input': {'re_pattern': 'LibreOffice (?P<version>\\d+\\.\\d+(\\.\\d+)?) '
                         '\\(\\d{4}-\\d{2}-\\d{2}\\) - Latest Release',
           'url': 'https://www.libreoffice.org/download/release-notes/'}}
URLTextSearcher: No value supplied for result_output_var_name, setting default value of: match
URLTextSearcher: Found matching text (version): 24.2
URLTextSearcher: Found matching text (match): 24.2
{'Output': {'match': '24.2', 'version': '24.2'}}
URLDownloader
{'Input': {'filename': 'LibreOffice-x86_64.dmg',
           'url': 'https://download.documentfoundation.org/libreoffice/stable/24.2/mac/x86_64/LibreOffice_24.2_MacOS_x86-64.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: ERROR: (22) The requested URL returned error: 404

curl: (22) The requested URL returned error: 404

Failed.
Receipt written to /Users/frank/Library/AutoPkg/Cache/local.munki.LibreOffice/receipts/LibreOffice.munki-receipt-20240302-141649.plist

The following recipes failed:
    LibreOffice.munki.recipe
        Error in local.munki.LibreOffice: Processor: URLDownloader: Error: curl: (22) The requested URL returned error: 404

Nothing downloaded, packaged or imported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions