summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/package.c8
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,