]> git.ipfire.org Git - thirdparty/libsolv.git/commit
source/binary rpm detection heuristic when ENABLE_RPMPKG_LIBRPM used 264/head
authorMarek Blaha <marek.blaha@gmail.com>
Fri, 4 May 2018 14:30:41 +0000 (16:30 +0200)
committerMarek Blaha <marek.blaha@gmail.com>
Fri, 4 May 2018 14:59:13 +0000 (16:59 +0200)
commit8e1dcb6e23a4ee7ea329609d3a05d17aa0201b87
tree57b45d60e470e61870474d6638ef4f810e3a24ce
parentf0ef172a591d9c1ca0e13e09955054ac9c473d67
source/binary rpm detection heuristic when ENABLE_RPMPKG_LIBRPM used

The headerIsSource() simply checks a presence of the RPMTAG_SOURCERPM
tag in package header, which is not really useful in this context.
This patch provides the same "heuristic" as the librpm uses for
detecting source/binary rpm.

Relevant bug: https://bugzilla.redhat.com/show_bug.cgi?id=1572338
ext/repo_rpmdb.c