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

Add consistency between verify and verify --fix #667

Merged
merged 2 commits into from
Nov 13, 2018

Conversation

castulo
Copy link
Contributor

@castulo castulo commented Oct 31, 2018

Running "swupd verify" should be a dry-run of running
"swupd verify --fix", meaning that "swupd verify" should find
the same issues to be resolved than "swupd verify --fix" but it
should just inform about them while --fix should inform + fix them.
In occasions this does not happen, for example when there are
tracked files that need to be removed from the system.

Closes #607
Closes #536

Signed-off-by: Castulo Martinez [email protected]

@otaviobp
Copy link
Contributor

otaviobp commented Nov 2, 2018

tests look good to me

This commit adds some tests to validate consistency
between "swupd verify" and "swupd verify --fix".

Signed-off-by: Castulo Martinez <[email protected]>
Running "swupd verify" should be a dry-run of running
"swupd verify --fix", meaning that "swupd verify" should find
the same issues to be resolved than "swupd verify --fix" but it
should just inform about them while --fix should inform + fix them.
In occasions this does not happen, for example when there are
tracked files that need to be removed from the system.

This commit fixes that.

Signed-off-by: Castulo Martinez <[email protected]>
Copy link
Contributor

@evil-brain evil-brain left a comment

Choose a reason for hiding this comment

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

+1
Tests look great, and this is a good improvement on verify. Nice!

@otaviobp otaviobp merged commit d8c1984 into clearlinux:master Nov 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants