printDepMsg: enhanced output format a bit

This commit is contained in:
Дмитрий Левин 2004-01-27 10:53:38 +00:00
parent e790f3b69a
commit f3023c5d3b

View File

@ -2726,10 +2726,18 @@ static void printDepMsg(DepMsg_t * dm, int count, const char ** names,
for (i = 0; i < count; i++, names++, versions++, flags++) {
if (hasFlags && !((*flags & dm->mask) ^ dm->xor))
continue;
/* workaround for legacy PreReq */
if (dm->mask == RPMSENSE_PREREQ && dm->xor == 0 && !isLegacyPreReq (*flags))
continue;
if (bingo == 0) {
rpmMessage(RPMMESS_NORMAL, "%s:", (dm->msg ? dm->msg : ""));
bingo = 1;
}
/* print comma where appropriate */
if (bingo > 1)
rpmMessage(RPMMESS_NORMAL, ",");
else
bingo = 2;
rpmMessage(RPMMESS_NORMAL, " %s", *names);
if (hasFlags && isDependsMULTILIB(*flags))