-
Notifications
You must be signed in to change notification settings - Fork 279
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
Don't ignore failed pre-install/post-install scripts/lua files in pkg-register(8) (#2073) #2111
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the title of the pull request / commit message should be what is changed, not what is wrong.
it's a commit/pull request, not an issue report
I agree, will change |
this is not failing on purpose for now, there are many things in the port tree that should be fixed before we do get to a point, that we stop ignore script failures. |
Interesting..can your shortly elaborate? Maybe those spots require comments in code depicting that this is on purpose? |
I need to find time, to write down all of it yes, I will to make that happen in the next couple of weeks. |
Merci! |
…-register(8) (freebsd#2073) When a package is registered through pkg-register(8) the return codes of pre-install and post-install scripts and lua files are ignored. Now they are respected as with pkg-add(8). This fixes freebsd#2073
Did you find the time to work on this/document it? |
after checking the current status of the ports tree, most of the issues are gone. so it might be safe now to die on script failure. |
But wouldn't the outcome be the same? Failure is failure, though just better separated? |
the outcone would be slightly different, if you die in a middle of a transaction do end up into an unstable state: half upgraded, some things might get broken more deeply than just the package that failed to installed) for example a library has been bumped all the dependent package are not update yet, but the pre install of one of them (and worst case scénario the first in the transaction) dies, ten the whole transaction is aborted, rolling back the entire transaction is impossible, the user ends up with a broken system. With pre transaction checking, then we die early enough, an example of such scripts are in the linux packages. |
This explanation makes absolutely sense! |
When a package is registered through pkg-register(8) the return codes of pre-install and post-install scripts and lua files are ignored. Now they are respected as with pkg-add(8).
This fixes #2073