rpm 5.4.10 for testing in th-test
Jan Rękorajski
baggins at pld-linux.org
Thu Sep 13 13:28:41 CEST 2012
On Wed, 12 Sep 2012, Jeffrey Johnson wrote:
> But this isn't the time/pace to discuss relative merits
> of user/group management … the rpmdsCompare needs to
> be extended to include the namespace in the comparison.
Would something like this do the job (works-for-me)?
Or is it too simplified?
--- rpm-5.4.10/lib/rpmds.c~ 2012-07-06 17:39:16.000000000 +0200
+++ rpm-5.4.10/lib/rpmds.c 2012-09-13 12:40:32.439076460 +0200
@@ -4036,6 +4036,12 @@
assert((rpmdsFlags(A) & RPMSENSE_SENSEMASK) == A->ns.Flags);
assert((rpmdsFlags(B) & RPMSENSE_SENSEMASK) == B->ns.Flags);
+ /* Different namespaces don't overlap. */
+ if (A->ns.Type != B->ns.Type) {
+ result = 0;
+ goto exit;
+ }
+
/* Different names (and/or name.arch's) don't overlap. */
if (rpmdsNAcmp(A, B)) {
result = 0;
--
Jan Rękorajski | PLD/Linux
SysAdm | http://www.pld-linux.org/
baggins<at>mimuw.edu.pl
baggins<at>pld-linux.org
More information about the pld-devel-en
mailing list