diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2023-03-22 09:46:10 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2023-03-22 11:17:45 +0200 |
commit | b2218e0e8ab96e1002537ca43e3a6e6955115297 (patch) | |
tree | 74b1ea008e10c2aa19eef01c563d6fa30c38fb1b /lib | |
parent | a0dcb68b062c90cc0aed26d2f3a222d0d3341635 (diff) | |
download | rpm-b2218e0e8ab96e1002537ca43e3a6e6955115297.tar.gz |
Clean up filedepTag(), support all dependency types (in theory)
Similar to previous commit: grab the deptype from the ds instead of
recalculating it on our own, as an extra bonus it now supports all
dependency types but we only ever call it with provides and requires.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tagexts.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/tagexts.c b/lib/tagexts.c index 08f7a17e2..8e20c0db3 100644 --- a/lib/tagexts.c +++ b/lib/tagexts.c @@ -147,12 +147,8 @@ static int filedepTag(Header h, rpmTag tagN, rpmtd td, headerGetFlags hgflags) goto exit; } - if (tagN == RPMTAG_PROVIDENAME) - deptype = 'P'; - else if (tagN == RPMTAG_REQUIRENAME) - deptype = 'R'; - ds = rpmdsNew(h, tagN, 0); + deptype = rpmdsD(ds); fdeps = xmalloc(numfiles * sizeof(*fdeps)); while ((fileix = rpmfiNext(fi)) >= 0) { |