This commit is contained in:
parent
fb0fa1f351
commit
ff1607d623
3 changed files with 17 additions and 22 deletions
|
@ -31,7 +31,7 @@ impl Mirrorlist {
|
|||
impl Config {
|
||||
pub fn is_mirrored_repo(&self, repo: &str) -> bool {
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue