mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-14 20:10:04 +08:00
MockModuleBuilder: fix repo_name for local repositories
This commit is contained in:
@@ -536,7 +536,7 @@ class MockModuleBuilder(GenericBuilder):
|
||||
# If source starts with mock_resultdir, it means it is path to local
|
||||
# module build repository.
|
||||
if source.startswith(conf.mock_resultsdir):
|
||||
repo_name = os.path.basename(source)
|
||||
repo_name = os.path.basename(os.path.dirname(source))
|
||||
if repo_name.startswith("module-"):
|
||||
repo_name = repo_name[7:]
|
||||
repo_dir = source
|
||||
|
||||
Reference in New Issue
Block a user