mrepo
mrepo copied to clipboard
Improved repository directory structure
Change the directory structure in /var/www/mrepo, maybe even make the structure configurable so to mimic mirrors. This obviously breaks existing setups !
+1
to avoid syntax breaking the current syntax should stays this way and only make each path configurable. Example:
[dist1] path = /mirror/public/dist1/$release/$arch
[dist2] path = /mirror/private/dist2/$release/$arch
Here is a patch I've made
https://github.com/fatpat/mrepo/commit/7baed13fcdea1f353d1b170ffc77161fcbf25467 https://github.com/fatpat/mrepo/commit/144843a85add1934e82a3c39fba8cb4294220298
it adds the "srcdir" parameter to each dist section. If not set, the same behaviour remains. If set, repo.srcdir is replaced in dist.rewrite()
Example:
[dist] name = $release ($arch) release = 6 arch = x86_64 metadata = repomd srcdir = test/prout/$dist/$repo/${release}Server/$arch repo1 = reposync://ftp-stud.fht-esslingen.de/dag/redhat/el$release/en/$arch/testing/ repo2 = reposync://ftp-stud.fht-esslingen.de/dag/redhat/el$release/en/$arch/testing/