Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
[enh] Check if dpkg is not broken when calling ynh_wait_dpkg_free #638
Use the way apt check that dpkg is available to know if
Ready to be reviewed.
How to test
As Aleks told me, update metronome or any other package that will ask you to replace a config file. And kill the process without answering the question.
referenced this pull request
Jan 31, 2019
Shouldn't we run
I have a concern because people that only uses the admin interface won't be able to do that by themselves but that's really out of the scope of this PR.
It won't solve the issue. For instance, in the case of the metronome upgrade, it excepts to interact with the user so that it can choose what version of the config to choose ... That's one example but there might be other situation (e.g. not being able to install a package because it cant override a file, c.f. labriqueinternet/hotspot_ynh#30 )
So there isn't really any obvious general automatic fix :/ But at least diagnosing what the actual issue is shall make support faster.
(For the anecdote : I reported this after a friend was not able to install an app. Then he ended up trying to install all conf files by hand because he thought the app was broken. Turns out it was just the metronome thing which broke apt :/)