newAttr = newLink;
}
- if (!strcmp(dbAttr, newAttr)) {
- /* this file is the same in all versions of this package */
- message(MESS_DEBUG, " old == new, keeping\n");
- return KEEP;
- }
+ /* this order matters - we'd prefer to CREATE the file is at all
+ possible in case something else (like the timestamp) has changed */
if (!strcmp(dbAttr, buffer)) {
/* this config file has never been modified, so
return CREATE;
}
+ if (!strcmp(dbAttr, newAttr)) {
+ /* this file is the same in all versions of this package */
+ message(MESS_DEBUG, " old == new, keeping\n");
+ return KEEP;
+ }
+
/* the config file on the disk has been modified, but
the ones in the two packages are different. It would
be nice if RPM was smart enough to at least try and