mvo5 / synaptic

The synaptic package manager
GNU General Public License v2.0
154 stars 55 forks source link

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

Open clefebvre opened 2 years ago

clefebvre commented 2 years ago

To reproduce the issue:

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 commented 2 years ago

Downstream bug report: https://github.com/linuxmint/mintupdate/issues/627