Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't cut last package in a module #606

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions reports/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def parse_modules(modules_string):


def process_module(module_str):
""" Processes a single sanitied module string and converts to a module
""" Processes a single sanitized module string and converts to a module
"""
m_name = module_str[0]
m_stream = module_str[1]
Expand All @@ -334,7 +334,7 @@ def process_module(module_str):
m_repo = None

packages = set()
for pkg_str in module_str[6:-1]:
for pkg_str in module_str[6:]:
p_type = Package.RPM
p_name, p_epoch, p_ver, p_rel, p_dist, p_arch = parse_package_string(pkg_str)
package = get_or_create_package(p_name, p_epoch, p_ver, p_rel, p_arch, p_type)
Expand Down
Loading