diff options
Diffstat (limited to 'lib/query.c')
-rw-r--r-- | lib/query.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/query.c b/lib/query.c index 7ecebafe6..6f2d593a7 100644 --- a/lib/query.c +++ b/lib/query.c @@ -146,6 +146,10 @@ int showQueryPackage(QVA_t qva, rpmts ts, Header h) if ((qva->qva_flags & QUERY_FOR_CONFIG) && !(fflags & RPMFILE_CONFIG)) continue; + /* If querying only licenses, skip non-license files. */ + if ((qva->qva_flags & QUERY_FOR_LICENSE) && !(fflags & RPMFILE_LICENSE)) + continue; + /* If not querying %ghost, skip ghost files. */ if ((qva->qva_fflags & RPMFILE_GHOST) && (fflags & RPMFILE_GHOST)) continue; |