Added mock build. Part 1

This commit is contained in:
alexey
2025-03-10 23:56:58 +03:00
parent 91fa281237
commit 48b648f46b
8 changed files with 275 additions and 9 deletions

View File

@@ -72,12 +72,14 @@ class ProjectsActions
linked_prj = []
proj_repo_path = File.join(proj_path, PROJECTS_STRUCTURE[:REPO])
proj_repo = <<~PRJ_CFG
config_opts['dnf.conf'] += """
[#{proj_name}-repository]
name=Project repository #{proj_name}
baseurl=file://#{proj_repo_path}
enabled=1
priority=80
skip_if_unavailable=True
"""
PRJ_CFG
linked_prj << proj_repo
unless id.nil?
@@ -238,4 +240,7 @@ class ProjectsActions
@db.save_linked_projects(prj_id, item)
end
end
def build_projects_git(prj_id, git_id)
end
end