diff options
author | ewt <devnull@localhost> | 1999-10-06 22:50:55 +0000 |
---|---|---|
committer | ewt <devnull@localhost> | 1999-10-06 22:50:55 +0000 |
commit | f90d8e7415fe75045db5db5504016c0ba5773a8e (patch) | |
tree | 478bccc359db9cd5246f0b33a7edc5642c205a15 /lib/package.c | |
parent | 2423cad4c41645bf43f8b6201d6ef5f2a6ed6481 (diff) | |
download | librpm-tizen-f90d8e7415fe75045db5db5504016c0ba5773a8e.tar.gz librpm-tizen-f90d8e7415fe75045db5db5504016c0ba5773a8e.tar.bz2 librpm-tizen-f90d8e7415fe75045db5db5504016c0ba5773a8e.zip |
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
Diffstat (limited to 'lib/package.c')
-rw-r--r-- | lib/package.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/package.c b/lib/package.c index b1079bf7f..d6cfafce4 100644 --- a/lib/package.c +++ b/lib/package.c @@ -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, |