FS#8645 - Restore pacsaves on an install
Attached to Project:
Pacman
Opened by Aaron Griffin (phrakture) - Thursday, 15 November 2007, 18:37 GMT
Last edited by Allan McRae (Allan) - Thursday, 03 September 2020, 04:47 GMT
Opened by Aaron Griffin (phrakture) - Thursday, 15 November 2007, 18:37 GMT
Last edited by Allan McRae (Allan) - Thursday, 03 September 2020, 04:47 GMT
|
Details
Random idea I had just now.
If I pacman -R foobar, I get left with a /etc/foobar.conf.pacsave if I made changes, but the package is gone. If I then pacman -S foobar again, we could flip-flop these. The pacsave file gets moved to the real conf file, and the one in the package moved to pacnew Opinions? |
This task depends upon
Closed by Allan McRae (Allan)
Thursday, 03 September 2020, 04:47 GMT
Reason for closing: Won't implement
Additional comments about closing: This idea is too prone to causing unintended breakage. Pacman should leave these files alone.
Thursday, 03 September 2020, 04:47 GMT
Reason for closing: Won't implement
Additional comments about closing: This idea is too prone to causing unintended breakage. Pacman should leave these files alone.
If we do this, a message saying what was done is a must.
In all cases where the configuration file (without the .pacsave postfix) isn't already present for any reason (on reinstalls, for example) this operation should be perfectly save and intuitive as long as a .pacnew is created, shouldn't it?
In which way could it be bug-prone, Roman?
I don't see any risk of data loss and problems with incompatibility are possible with the current .pacnew file creation, too.
Dan, if the user has such an old pacsave file lying around, he's probably not a newbie. ;) Also, reading pacman's output carefully should pull everyone's attraction on the newly created .pacnew file to check for neccessary merging...
Without deeper overthinking, I feel that this could be used to simplify upgrade .pacsave handling (upgrade == remove + add).
http://archlinux.org/pipermail/pacman-dev/2008-May/011715.html
Once someone helps me figure why that pactest broke, I will add the user interface parts.
But I agree that this whole problem is not obvious at all and would require additional explanations and discussions on the ML.
How about just printing a message when a file in the backup array is installed and there is an existing .pacsave file?