-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Noob issue : "failed to retrieve some files" #50
Comments
If you add a logging callback you can see the mirror times out
|
This mirror is working with pacman just fine. I have also tested with more worldwide mirrors and local mirrors which are working just fine with pacman too. Might I add, I have also tested with core and extra repos as well. I think there must be some other underlying issue. |
use alpm::*;
fn main() {
let root = "/home/user";
let mut alpm = match alpm::Alpm::new(root, dbpath) {
Ok(alpm) => alpm,
Err(err) => {
eprintln!("Failed to initialize ALPM: {}", err);
return;
}
};
alpm.set_log_cb((), logcb);
let core = alpm
.register_syncdb_mut("kde-unstable", SigLevel::USE_DEFAULT)
.unwrap();
core.add_server("http://mirror.4v1.in/archlinux/core/os/x86_x64")
.unwrap();
// Added more servers here
core.set_usage(Usage::SYNC | Usage::SEARCH).unwrap();
match alpm.syncdbs_mut().update(true) {
Ok(updated) => {
if updated {
println!("Database was updated.")
} else {
println!("Database is up to date.");
}
}
Err(e) => {
eprintln!("Failed to update database. {}", e);
}
}
}
fn logcb(_level: LogLevel, msg: &str, _: &mut ()) {
print!("{msg}");
} |
So i keep hitting this error and I wonder if I'm doing something wrong.
The text was updated successfully, but these errors were encountered: