Skip to content

libreoffice: Fix pre_install script bug#9491

Closed
StarsbySea wants to merge 5 commits intoScoopInstaller:masterfrom
StarsbySea:master
Closed

libreoffice: Fix pre_install script bug#9491
StarsbySea wants to merge 5 commits intoScoopInstaller:masterfrom
StarsbySea:master

Conversation

@StarsbySea
Copy link
Copy Markdown
Contributor

@StarsbySea StarsbySea commented Oct 16, 2022

Fix tiny logical bug in pre_install caused by ScoopInstaller/Scoop#5116 which changed the config name from MSIEXTRACT_USE_LESSMSI to use_lessmsi

Closes #8920

Copy link
Copy Markdown
Member

@tech189 tech189 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your PR! I updated the description to explain the fix a bit more and made a suggestion. I don't think this PR fixes #8920 though, that issue has no problem with running the pre_install script.

Comment thread bucket/libreoffice.json Outdated
StarsbySea and others added 2 commits October 16, 2022 21:20
Co-authored-by: tech189 <dlloyd189@gmail.com>
@StarsbySea
Copy link
Copy Markdown
Contributor Author

You are right about the code suggestion, I tested it locally and it passed. But there are a few more issues I would like to add.

  1. Regarding the LibreOffice shortcuts error #8920 issue, I think the cause should be due to the update upstream of scoop, which causes get_config MSIEXTRACT_USE_LESSMSI $false to always return false, even though use_lessmsi has been set to true, and I think this is causing the problem. Maybe we should migrate all the MSIEXTRACT_USE_LESSMSI fields in the codebase to use_lessmsi?
  2. specifying $default with get-config does not cause a new configuration to be created, it just changes the default value returned if the value is taken as null.

I have made some code changes, will you take another look?

@StarsbySea
Copy link
Copy Markdown
Contributor Author

StarsbySea commented Oct 16, 2022

Image1
Image2
Image3

I think those picture says something haha

@StarsbySea
Copy link
Copy Markdown
Contributor Author

Solve in #9493

@StarsbySea StarsbySea closed this Oct 18, 2022
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.

LibreOffice shortcuts error

2 participants