Skip to content

Commit

Permalink
repo2module: don't traceback because of a modular SRPM in the repo
Browse files Browse the repository at this point in the history
Fix RHBZ 2186223
  • Loading branch information
FrostyX committed Jun 13, 2023
1 parent 79e3f7a commit cd04198
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modulemd_tools/repo2module/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ def get_source_packages(packages):
"""
source_packages = set()
for pkg in packages:
# In this case, the `pkg` is a SRPM file
if not pkg.rpm_sourcerpm:
source_packages.add(pkg.name)
continue

# Get the source RPM NEVRA without the trailing ".rpm"
subject = Subject(pkg.rpm_sourcerpm[:-4])

Expand Down

0 comments on commit cd04198

Please sign in to comment.