This commit is contained in:
parent
fb0fa1f351
commit
ff1607d623
3 changed files with 17 additions and 22 deletions
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
[mirror]
|
[mirror]
|
||||||
repos = [
|
repos = [
|
||||||
"core",
|
"core",
|
||||||
|
@ -6,8 +5,7 @@ repos = [
|
||||||
"multilib"
|
"multilib"
|
||||||
]
|
]
|
||||||
|
|
||||||
[mirrorlist]
|
mirrorlist.x86_64 = [
|
||||||
x86_64 = [
|
|
||||||
"http://mirrors.kernel.org/archlinux/$repo/os/$arch",
|
"http://mirrors.kernel.org/archlinux/$repo/os/$arch",
|
||||||
"https://geo.mirror.pkgbuild.com/$repo/os/$arch",
|
"https://geo.mirror.pkgbuild.com/$repo/os/$arch",
|
||||||
"https://ftpmirror.infania.net/mirror/archlinux/$repo/os/$arch",
|
"https://ftpmirror.infania.net/mirror/archlinux/$repo/os/$arch",
|
||||||
|
@ -15,6 +13,6 @@ x86_64 = [
|
||||||
"https://mirror.rackspace.com/archlinux/$repo/os/$arch"
|
"https://mirror.rackspace.com/archlinux/$repo/os/$arch"
|
||||||
]
|
]
|
||||||
|
|
||||||
aarch64 = [
|
mirrorlist.aarch64 = [
|
||||||
"https://mirror.archlinuxarm.org/$arch/$repo/"
|
"https://mirror.archlinuxarm.org/$arch/$repo/"
|
||||||
]
|
]
|
||||||
|
|
|
@ -31,7 +31,7 @@ impl Mirrorlist {
|
||||||
impl Config {
|
impl Config {
|
||||||
pub fn is_mirrored_repo(&self, repo: &str) -> bool {
|
pub fn is_mirrored_repo(&self, repo: &str) -> bool {
|
||||||
if let Some(mirrorc) = &self.mirror {
|
if let Some(mirrorc) = &self.mirror {
|
||||||
return mirrorc.repos.iter().any(|x| x == repo);
|
return mirrorc.repos.iter().any(|x| x.trim() == repo.trim());
|
||||||
}
|
}
|
||||||
|
|
||||||
false
|
false
|
||||||
|
|
|
@ -56,9 +56,7 @@ async fn launch(config: String) {
|
||||||
..Default::default()
|
..Default::default()
|
||||||
})
|
})
|
||||||
.mount_assets()
|
.mount_assets()
|
||||||
.mount(
|
.mount("/", routes![
|
||||||
"/",
|
|
||||||
routes![
|
|
||||||
routes::index_page,
|
routes::index_page,
|
||||||
routes::pkg_route,
|
routes::pkg_route,
|
||||||
routes::push::upload_pkg,
|
routes::push::upload_pkg,
|
||||||
|
@ -71,8 +69,7 @@ async fn launch(config: String) {
|
||||||
routes::user::end_session,
|
routes::user::end_session,
|
||||||
routes::user::change_password,
|
routes::user::change_password,
|
||||||
routes::user::change_password_post
|
routes::user::change_password_post
|
||||||
],
|
])
|
||||||
)
|
|
||||||
.manage(config)
|
.manage(config)
|
||||||
.manage(shell)
|
.manage(shell)
|
||||||
.launch()
|
.launch()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue