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

Unecessary error in --update-at-startup mode #90

Open
clefebvre opened this issue Jan 4, 2022 · 1 comment
Open

Unecessary error in --update-at-startup mode #90

clefebvre opened this issue Jan 4, 2022 · 1 comment

Comments

@clefebvre
Copy link

To reproduce the issue:

  • Open synaptic
  • Block a package (this creates an entry in /var/lib/synaptic/preferences)
  • Unblock the package (this leaves an empty line in /var/lib/synaptic/preferences)
  • Refresh the cache ... everything works fine
  • Close synaptic
  • Run synaptic's refresh in update mode with:

sudo /usr/bin/synaptic --update-at-startup

and you get the following error:

image

Analysis:

The error comes from RAPTOptions::restore(), it is detected both in update mode and in normal mode. The difference between the two is that in update mode, the cache isn't opened prior to performing the refresh.

Proposed solution:

Initialize the cache also in update mode.

https://gitlab.com/linuxmint/pins/mint/synaptic/-/commit/7477fb52b03b95695110216fe61b30aa00524ae9

@clefebvre
Copy link
Author

Downstream bug report: linuxmint/mintupdate#627

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

No branches or pull requests

1 participant