forked from vieter-v/vieter
Very alpha support for multiple & multi-arch repos
This commit is contained in:
parent
013ce511d7
commit
a47cace296
8 changed files with 83 additions and 47 deletions
|
|
@ -14,7 +14,7 @@ struct App {
|
|||
pub:
|
||||
conf env.ServerConfig [required; web_global]
|
||||
pub mut:
|
||||
repo repo.Repo [required; web_global]
|
||||
repo repo.RepoGroupManager [required; web_global]
|
||||
// This is used to claim the file lock on the repos file
|
||||
git_mutex shared util.Dummy
|
||||
}
|
||||
|
|
@ -42,7 +42,7 @@ pub fn server() ? {
|
|||
}
|
||||
|
||||
// This also creates the directories if needed
|
||||
repo := repo.new(conf.repo_dir, conf.pkg_dir) or {
|
||||
repo := repo.new(conf.data_dir, conf.pkg_dir, "x86_64") or {
|
||||
logger.error(err.msg)
|
||||
exit(1)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue