Skip to content

Fix uninstall unused versions - #3093

Closed
alexlarsson wants to merge 2 commits into
masterfrom
fix-uninstall-unused-versions
Closed

alexlarsson wants to merge 2 commits into
masterfrom
fix-uninstall-unused-versions

Conversation

@alexlarsson

Copy link
Copy Markdown
Member

Handle 'versions' key when finding local related ref

We were only handling the old single-value 'version' key, even though we handled the 'versions' key when finding remote related refs.

The result of this was that some extensions, such as the 19.08 opengl default one was installed by default (as it was found as remote related) yet still removed with --unused (as it was not locally related).

Fixes #3004

This puts the checksum autoptr in the inner scope of the loop where
it gets assigned to avoid leaking all but the last iteration value.
We were only handling the old single-value 'version' key, even though
we handled the 'versions' key when finding remote related refs.

The result of this was that some extensions, such as the 19.08 opengl
default one was installed by default (as it was found as remote related)
yet still removed with --unused (as it was not locally related).

Fixes #3004
@mwleeds

mwleeds commented Sep 10, 2019

Copy link
Copy Markdown
Contributor

Would be nice if find_local_related and find_remote_related could share more code, but maybe that's a challenge for another time.

@mwleeds

mwleeds commented Sep 10, 2019

Copy link
Copy Markdown
Contributor

@rh-atomic-bot r+

@rh-atomic-bot

Copy link
Copy Markdown

📌 Commit 41abcdf has been approved by mwleeds

@rh-atomic-bot

Copy link
Copy Markdown

⚡ Test exempted: pull fully rebased and already tested.

rh-atomic-bot pushed a commit that referenced this pull request Sep 10, 2019
We were only handling the old single-value 'version' key, even though
we handled the 'versions' key when finding remote related refs.

The result of this was that some extensions, such as the 19.08 opengl
default one was installed by default (as it was found as remote related)
yet still removed with --unused (as it was not locally related).

Fixes #3004

Closes: #3093
Approved by: mwleeds
alexlarsson added a commit to alexlarsson/flatpak that referenced this pull request Sep 18, 2019
This puts the checksum autoptr in the inner scope of the loop where
it gets assigned to avoid leaking all but the last iteration value.

Closes: flatpak#3093
Approved by: mwleeds

(cherry picked from commit ca72dd5)
alexlarsson added a commit to alexlarsson/flatpak that referenced this pull request Sep 18, 2019
We were only handling the old single-value 'version' key, even though
we handled the 'versions' key when finding remote related refs.

The result of this was that some extensions, such as the 19.08 opengl
default one was installed by default (as it was found as remote related)
yet still removed with --unused (as it was not locally related).

Fixes flatpak#3004

Closes: flatpak#3093
Approved by: mwleed

(manually cherry-picked from commit e4b1d16)
rh-atomic-bot pushed a commit that referenced this pull request Sep 18, 2019
This puts the checksum autoptr in the inner scope of the loop where
it gets assigned to avoid leaking all but the last iteration value.

Closes: #3093
Approved by: mwleeds

(cherry picked from commit ca72dd5)

Closes: #3111
Approved by: alexlarsson
rh-atomic-bot pushed a commit that referenced this pull request Sep 18, 2019
We were only handling the old single-value 'version' key, even though
we handled the 'versions' key when finding remote related refs.

The result of this was that some extensions, such as the 19.08 opengl
default one was installed by default (as it was found as remote related)
yet still removed with --unused (as it was not locally related).

Fixes #3004

Closes: #3093
Approved by: mwleed

(manually cherry-picked from commit e4b1d16)

Closes: #3111
Approved by: alexlarsson
alexlarsson added a commit that referenced this pull request Sep 18, 2019
This puts the checksum autoptr in the inner scope of the loop where
it gets assigned to avoid leaking all but the last iteration value.

Closes: #3093
Approved by: mwleeds

(cherry picked from commit ca72dd5)
alexlarsson added a commit that referenced this pull request Sep 18, 2019
We were only handling the old single-value 'version' key, even though
we handled the 'versions' key when finding remote related refs.

The result of this was that some extensions, such as the 19.08 opengl
default one was installed by default (as it was found as remote related)
yet still removed with --unused (as it was not locally related).

Fixes #3004

Closes: #3093
Approved by: mwleed

(manually cherry-picked from commit e4b1d16)
alexlarsson added a commit to alexlarsson/flatpak that referenced this pull request Sep 19, 2019
We were only handling the old single-value 'version' key, even though
we handled the 'versions' key when finding remote related refs.

The result of this was that some extensions, such as the 19.08 opengl
default one was installed by default (as it was found as remote related)
yet still removed with --unused (as it was not locally related).

Fixes flatpak#3004

Closes: flatpak#3093
Approved by: mwleed

(manually cherry-picked from commit aa7b62a)
rh-atomic-bot pushed a commit that referenced this pull request Sep 19, 2019
We were only handling the old single-value 'version' key, even though
we handled the 'versions' key when finding remote related refs.

The result of this was that some extensions, such as the 19.08 opengl
default one was installed by default (as it was found as remote related)
yet still removed with --unused (as it was not locally related).

Fixes #3004

Closes: #3093
Approved by: mwleed

(manually cherry-picked from commit aa7b62a)

Closes: #3115
Approved by: alexlarsson
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.

The org.freedesktop.Platform.GL.default runtime is both unused and installed by default

3 participants