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

[enh] Mark YunoHost as essential to avoid removing it inadvertenly #694

Merged
merged 2 commits into from Apr 22, 2019

Conversation

Projects
None yet
1 participant
@alexAubin
Copy link
Member

commented Mar 26, 2019

The problem

Users might remove YunoHost inadvertenly ... c.f. some cases on the forum

Solution

I randomly came accross this option in debian packages which allow to mark some package as essential - which is different from "held" package in that you can upgrade the package but not remove it.

For example, try to remove bash and it will complain :

The following packages will be REMOVED:
  bash bash-completion
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  bash
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 7,186 kB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?]

PR Status

Not tested, just doing this quick PR before I forget about it ...

How to test

Install YunoHost will this option enabled in the package somehow

Validation

  • Principle agreement 0/2 :
  • Quick review 0/1 :
  • Simple test 0/1 :
  • Deep review 0/1 :
@alexAubin

This comment has been minimized.

Copy link
Member Author

commented Apr 19, 2019

Tested and works as expected

To be merged soon™ if nobody complains

@alexAubin alexAubin merged commit 9696b14 into stretch-unstable Apr 22, 2019

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@alexAubin alexAubin deleted the mark-yunohost-as-essential branch Apr 22, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.