Skip to content
Merged
Show file tree
Hide file tree
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 modules/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

def get_or_create_module(name, stream, version, context, arch, repo):
""" Get or create a module object
Returns the module and a boolean for created
Returns the module
"""
created = False
m_arch, c = PackageArchitecture.objects.get_or_create(name=arch)
Expand All @@ -46,7 +46,7 @@ def get_or_create_module(name, stream, version, context, arch, repo):
arch=m_arch,
repo=repo,
)
return module, created
return module


def get_matching_modules(name, stream, version, context, arch):
Expand Down
2 changes: 1 addition & 1 deletion repos/repo_types/yum.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def extract_module_metadata(data, url, repo):
packages.add(package)

from modules.utils import get_or_create_module
module, created = get_or_create_module(m_name, m_stream, m_version, m_context, arch, repo)
module = get_or_create_module(m_name, m_stream, m_version, m_context, arch, repo)

package_ids = []
for package in packages:
Expand Down