Mailinglist Archive: opensuse-bugs (2746 mails)

< Previous Next >
[Bug 753935] yast2 ntp-client calls unchanged ntp.conf "changed manually"

https://bugzilla.novell.com/show_bug.cgi?id=753935

https://bugzilla.novell.com/show_bug.cgi?id=753935#c7


--- Comment #7 from Christian Boltz <suse-beta@xxxxxxxxx> 2013-06-21 07:52:25
CEST ---
(In reply to comment #4)
How about this algorithm for the YaST module?

Looks good, but I'd propose a small change.

If a checksum exists

If the checksum matches the file

_or rpm -V reports the file as unchanged_

Proceed in changing the file and update the checksum.

If the checksum does not match the file

_and rpm -V reports the file as changed_

Report the file as manually edited.

This way a checksum will only exist if YaST really touched the file, and at
that point due to the file being packaged as %config(noreplace) it will never
get replaced by the new version on update.

Please also include rpm -V in the check because
- the checksum might have been created by older YaST versions
- a user might have moved the .rpmnew to ntp.conf

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >