Each repo now has its own subdir in pkg_dir

This commit is contained in:
Jef Roosens 2022-04-09 17:41:41 +02:00
parent ebe01c2d44
commit cec5ecce7f
Signed by untrusted user: Jef Roosens
GPG key ID: B75D4F293C7052DB
3 changed files with 10 additions and 8 deletions

View file

@ -33,11 +33,11 @@ fn (mut app App) get_repo_file(repo string, arch string, filename string) web.Re
full_path += '.tar.gz'
}
} else if filename.contains('.pkg') {
full_path = os.join_path_single(app.repo.pkg_dir, filename)
full_path = os.join_path(app.repo.pkg_dir, repo, filename)
// Default behavior is to return the desc file for the package, if present.
// This can then also be used by the build system to properly check whether
// a package is present in an arch-repo.
// Default behavior is to return the desc file for the package, if present.
// This can then also be used by the build system to properly check whether
// a package is present in an arch-repo.
} else {
full_path = os.join_path(app.repo.repos_dir, repo, arch, filename, 'desc')
}