aboutsummaryrefslogtreecommitdiff
path: root/src/rpminfo.c
diff options
context:
space:
mode:
authorLucas C. Villa Real <lucasvr@gmail.com>2017-01-01 20:30:31 -0200
committerLucas C. Villa Real <lucasvr@gmail.com>2017-01-01 20:30:31 -0200
commit674fe65facf17062794d91f9b0aa22f5bc962d8e (patch)
treecb71e88cb02363bcadab702f579baac07fbb8912 /src/rpminfo.c
parent7e2aaa82e0bb460c85012a098f568dbb196a711e (diff)
downloadThirdPartyInstallers-674fe65facf17062794d91f9b0aa22f5bc962d8e.tar.xz
Filter out dependencies on rpmlib from "rpminfo --dependencies".
Diffstat (limited to 'src/rpminfo.c')
-rw-r--r--src/rpminfo.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rpminfo.c b/src/rpminfo.c
index 591f284..cf39c08 100644
--- a/src/rpminfo.c
+++ b/src/rpminfo.c
@@ -12,6 +12,7 @@
#include <unistd.h>
#include <errno.h>
+#define _RPMEVR_INTERNAL
#include <rpm/rpmio.h>
#include <rpm/rpmcli.h>
#include <rpm/pkgio.h>
@@ -52,7 +53,10 @@ void print_dependencies(Header *hdr)
const char *name = rpmdsN(depinfo);
const char *version= rpmdsEVR(depinfo);
evrFlags flags = rpmdsFlags(depinfo);
-
+ if (flags & RPMSENSE_RPMLIB) {
+ /* ignore dependencies on rpmlib features */
+ continue;
+ }
printf("%s", name);
if (version && strlen(version)) {
if (flags)