Skip to content

Commit

Permalink
Not able to upload RPMs.
Browse files Browse the repository at this point in the history
closes #4130
https://pulp.plan.io/issues/4130

Rpm header object does not have get() attribute.
  • Loading branch information
ipanova committed Nov 7, 2018
1 parent 204f995 commit 4cc0788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/pulp_rpm/plugins/importers/yum/parse/rpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def get_package_modular_flag(headers):
:return: True, if package is a modular one
:rtype: boolean
"""
modular_flag = headers.get(rpm_module.RPMTAG_DISTTAG)
modular_flag = headers[rpm_module.RPMTAG_DISTTAG]
if modular_flag is None:
return False
return bool(re.match(r'module\(.*?\)', modular_flag))

0 comments on commit 4cc0788

Please sign in to comment.