r-darwish / topgrade

Upgrade everything
GNU General Public License v3.0
3.36k stars 160 forks source link

configure the option to skip new files found by default #854

Closed henrydenhengst closed 2 years ago

henrydenhengst commented 2 years ago

I want to suggest some general feature

Topgrade should let me configure the option to skip new files found by default.

―― 19:50:48 - Configuration update ――――――――――――――――――――――――――――――――――――――――――――― ==> pacnew file found for /etc/bluetooth/main.conf :: (V)iew, (S)kip, (R)emove pacnew, (O)verwrite with pacnew, (Q)uit: [v/s/r/o/q] s ==> pacnew file found for /etc/nsswitch.conf :: (V)iew, (S)kip, (R)emove pacnew, (O)verwrite with pacnew, (Q)uit: [v/s/r/o/q] s ==> pacnew file found for /etc/default/grub :: (V)iew, (S)kip, (R)emove pacnew, (O)verwrite with pacnew, (Q)uit: [v/s/r/o/q] s ==> pacnew file found for /etc/pacman.d/mirrorlist :: (V)iew, (S)kip, (R)emove pacnew, (O)verwrite with pacnew, (Q)uit: [v/s/r/o/q] s ==> pacnew file found for /etc/systemd/logind.conf :: (V)iew, (S)kip, (R)emove pacnew, (O)verwrite with pacnew, (Q)uit: [v/s/r/o/q] s

YES, I am willing to TEST !

MCOfficer commented 2 years ago

If i'm reading the code correctly, you should be able to skip this step by adding it to the "yes"-list in the config:

yes = ["config_update"]

or just to the list of disabled steps.

If that's not what you want, i misunderstood.

henrydenhengst commented 2 years ago

When I put yes = ["config_update"] in my config file topgrade.toml and I run topgrade I get a messive amount of errors. Maybe I am doing something wrong? I am trying to run my topgrade so that I do not have to choose anything and everything is preset according to my preference.

xeruf commented 2 years ago

The hint is correct, the change just hasn't been released yet, see #843

r-darwish commented 2 years ago

I'll release a new version this week.

henrydenhengst commented 2 years ago

Which version is the new version? I am now running: Topgrade 8.2.0

MCOfficer commented 2 years ago

8.2.0, see https://github.com/r-darwish/topgrade/releases

the version containing the fix isn't released yet.