- configurable (default off) build failure iff unpackaged files (PLD).
- change from default off to default on.
- python: methods to disable all new features for benchmarking.
+ - preserve rpmdb file attributes across --rebuilddb (#70367).
4.0.3 -> 4.0.4:
- solaris: translate i86pc to i386 (#57182).
* Thu Aug 1 2002 Jeff Johnson <jbj@redhat.com> 4.1-0.63
- add check-files to rpm-build manifest.
- python: methods to disable all new features for benchmarking.
+- preserve rpmdb file attributes across --rebuilddb (#70367).
* Wed Jul 31 2002 Jeff Johnson <jbj@redhat.com> 4.1-0.62
- make --querytags a common option, fix errant regex (#70135).
{
int i;
char * ofilename, * nfilename;
+ struct stat * nst = alloca(sizeof(*nst));
int rc = 0;
int xx;
continue;
sprintf(nfilename, "%s/%s/%s", prefix, newdbpath, base);
(void)rpmCleanPath(nfilename);
- if ((xx = Rename(ofilename, nfilename)) != 0)
+ if (Stat(nfilename, nst))
+ continue;
+ if ((xx = Rename(ofilename, nfilename)) != 0) {
rc = 1;
+ continue;
+ }
+ xx = chown(nfilename, nst->st_uid, nst->st_gid);
+ xx = chmod(nfilename, (nst->st_mode & 07777));
+ { struct utimbuf stamp;
+ stamp.actime = nst->st_atime;
+ stamp.modtime = nst->st_mtime;
+ xx = utime(nfilename, &stamp);
+ }
}
for (i = 0; i < 16; i++) {
sprintf(ofilename, "%s/%s/__db.%03d", prefix, olddbpath, i);