summaryrefslogtreecommitdiffstats
path: root/installer/OpenSLX/OSSetup/MetaPackager/yum.pm
diff options
context:
space:
mode:
authorOliver Tappe2007-08-15 17:36:56 +0200
committerOliver Tappe2007-08-15 17:36:56 +0200
commitcfe31ca7acca396c4f2744114c08fc0802cef5c3 (patch)
treed7d3c8631b65547c9636ec8c0743f089531e4edf /installer/OpenSLX/OSSetup/MetaPackager/yum.pm
parentCleaned up and corrected error messages (and german translations, see (diff)
downloadcore-cfe31ca7acca396c4f2744114c08fc0802cef5c3.tar.gz
core-cfe31ca7acca396c4f2744114c08fc0802cef5c3.tar.xz
core-cfe31ca7acca396c4f2744114c08fc0802cef5c3.zip
* switched from perl-based distro-configuration files to "real" configuration
files (handled by Config::General) * removed most version specific distribution modules (only Debian-3.1 remains as it requires some special treatment). For all the other distributions, the specific info is now contained in the configuration files * added configuration files (settings.default) for every supported distribution (only Fedora is still missing some info) * added support for inclusion of (externally generated) mirror lists and automatic selection of the five best (fastest) mirrors from that list (20 are tried). For each repository, a mirror configuration file is created (in /etc/opt/openslx/distro-info/<distro>/mirrors/<repo>) after that info has been gathered. * added current mirror lists for each distribution repository to the distro-info hierarchy * updated settings.example to reflect new configuration syntax git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1322 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer/OpenSLX/OSSetup/MetaPackager/yum.pm')
-rw-r--r--installer/OpenSLX/OSSetup/MetaPackager/yum.pm7
1 files changed, 2 insertions, 5 deletions
diff --git a/installer/OpenSLX/OSSetup/MetaPackager/yum.pm b/installer/OpenSLX/OSSetup/MetaPackager/yum.pm
index fbb50017..337227ed 100644
--- a/installer/OpenSLX/OSSetup/MetaPackager/yum.pm
+++ b/installer/OpenSLX/OSSetup/MetaPackager/yum.pm
@@ -61,11 +61,8 @@ sub setupPackageSource
my $repoDescr
= "[$repoName]\nname=$repoInfo->{name}\nbaseurl=$baseURL$repoSubdir\n";
- my $avoidMirrors = $repoInfo->{'avoid-mirrors'} || 0;
- if (!$avoidMirrors) {
- foreach my $mirrorURL (@$repoURLs) {
- $repoDescr .= " $mirrorURL$repoSubdir\n";
- }
+ foreach my $mirrorURL (@$repoURLs) {
+ $repoDescr .= " $mirrorURL$repoSubdir\n";
}
my $repoFile = "/etc/yum.repos.d/$repoName.repo";
spitFile($repoFile, "$repoDescr\nexclude=$excludeList\n");