The conflicts within the packages of equally ranked keys
must be treated usually by rpm.
Without this change, installation of conflicting packages
is not possible when msm plugin is active.
Change-Id: I909540524c7e2b43229b8aac90f66430041cbd55
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
//rpmlog(RPMLOG_DEBUG, "rpmteN(ctx->te) %s fc->pkg_name: %s\n", rpmteN(ctx->te), fc->pkg_name);
/* There is a conflict, see if we are not allowed to overwrite */
if ((!current ||
//rpmlog(RPMLOG_DEBUG, "rpmteN(ctx->te) %s fc->pkg_name: %s\n", rpmteN(ctx->te), fc->pkg_name);
/* There is a conflict, see if we are not allowed to overwrite */
if ((!current ||
- (strcmp(current->rankkey, fc->sw_source->rankkey) >= 0)) &&
+ (strcmp(current->rankkey, fc->sw_source->rankkey) > 0)) &&
(strcmp(rpmteN(ctx->te), fc->pkg_name))) {
(strcmp(rpmteN(ctx->te), fc->pkg_name))) {
- rpmlog(RPMLOG_ERR, "%s has file conflict in %s from sw source %s\n",
+ rpmlog(RPMLOG_ERR, "%s has file security conflict in %s from sw source %s\n",
rpmteN(ctx->te), fc->path, fc->sw_source->name);
return RPMRC_FAIL;
}
rpmteN(ctx->te), fc->path, fc->sw_source->name);
return RPMRC_FAIL;
}