aboutsummaryrefslogtreecommitdiffstats
path: root/rpmdrake.pm
diff options
context:
space:
mode:
Diffstat (limited to 'rpmdrake.pm')
-rw-r--r--rpmdrake.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm
index 19b2e750..236a05aa 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -421,6 +421,9 @@ sub mirrors {
{ url => $url, land => $u2l{$land} || N("United States"), goodness => $goodness + rand() };
} else { () }
} cat_($mirrorslist);
+ unless (-x '/usr/bin/rsync') {
+ @mirrors = grep { $_->{url} !~ /^rsync:/ } @mirrors;
+ }
unlink $mirrorslist;
return sort { $b->{goodness} <=> $a->{goodness} } @mirrors;
}