moved removed of extra UID information from header here from dependency

code (why was it ever there?)

CVS patchset: 3373
CVS date: 1999/10/06 22:50:55
This commit is contained in:
ewt 1999-10-06 22:50:55 +00:00
parent 2423cad4c4
commit f90d8e7415
1 changed files with 8 additions and 0 deletions

View File

@ -275,6 +275,14 @@ static int readPackageHeaders(FD_t fd, /*@out@*/struct rpmlead * leadPtr,
return 2;
}
/* We don't use these entries (and rpm >= 2 never have) and they are
pretty misleading. Let's just get rid of them so they don't confuse
anyone. */
if (headerIsEntry(*hdr, RPMTAG_FILEUSERNAME))
headerRemoveEntry(*hdr, RPMTAG_FILEUIDS);
if (headerIsEntry(*hdr, RPMTAG_FILEGROUPNAME))
headerRemoveEntry(*hdr, RPMTAG_FILEGIDS);
/* We switched the way we do relocateable packages. We fix some of
it up here, though the install code still has to be a bit
careful. This fixup makes queries give the new values though,