aboutsummaryrefslogtreecommitdiffstats
path: root/rpmdrake.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-04-21 16:49:45 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-04-21 16:49:45 +0000
commit322d0d001e53a7764a87b9c5b61add8262eb8c0e (patch)
tree7a09a5ad0cf84a7094291989920d924c8d4b7a7a /rpmdrake.pm
parente20d5f797ca059c14f944f4d6d95b6d3cd98391d (diff)
downloadrpmdrake-322d0d001e53a7764a87b9c5b61add8262eb8c0e.tar
rpmdrake-322d0d001e53a7764a87b9c5b61add8262eb8c0e.tar.gz
rpmdrake-322d0d001e53a7764a87b9c5b61add8262eb8c0e.tar.bz2
rpmdrake-322d0d001e53a7764a87b9c5b61add8262eb8c0e.tar.xz
rpmdrake-322d0d001e53a7764a87b9c5b61add8262eb8c0e.zip
Fix bug 15500: don't display rsync mirrors if rsync isn't installed
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;
}