include size in rpm ident fields
This commit is contained in:
parent
2f856dff13
commit
4e86267186
1 changed files with 3 additions and 1 deletions
|
|
@ -1205,7 +1205,9 @@ def get_rpm_ident(hdr):
|
|||
def get_rpm_ident_fields(hdr):
|
||||
"""Extract rpm header fields used for identification"""
|
||||
# these base fields should always exist
|
||||
fields = ('name', 'version', 'release', 'epoch', 'arch', 'buildtime')
|
||||
fields = ('name', 'version', 'release', 'epoch', 'arch', 'buildtime', 'size')
|
||||
# size and buildtime aren't actually used for identification, but they are
|
||||
# required if the rpm is external
|
||||
data = get_header_fields(hdr, fields)
|
||||
# digest fields may vary
|
||||
digests = get_rpm_digests(hdr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue