diff options
-rw-r--r-- | lib/rpmte.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/lib/rpmte.c b/lib/rpmte.c index 6a6201575..2f607683d 100644 --- a/lib/rpmte.c +++ b/lib/rpmte.c @@ -490,7 +490,7 @@ static void rpmteColorDS(rpmte te, rpmTag tag) { rpmfi fi; rpmds ds = rpmteDS(te, tag); - char deptype = 'R'; + char deptype = rpmdsD(ds); char mydt; const uint32_t * ddict; rpm_color_t * colors; @@ -499,21 +499,9 @@ static void rpmteColorDS(rpmte te, rpmTag tag) unsigned ix; int ndx, i; - if (!(te && (Count = rpmdsCount(ds)) > 0 && rpmfilesFC(te->files) > 0)) + if (!(te && deptype && (Count = rpmdsCount(ds)) > 0 && rpmfilesFC(te->files) > 0)) return; - switch (tag) { - default: - return; - break; - case RPMTAG_PROVIDENAME: - deptype = 'P'; - break; - case RPMTAG_REQUIRENAME: - deptype = 'R'; - break; - } - colors = xcalloc(Count, sizeof(*colors)); /* Calculate dependency color. */ |