1 |
commit: 2360bf2e7540d90c2fff6a10b1b7aae8ad98b394 |
2 |
Author: Max Magorsch <arzano <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 28 11:46:05 2020 +0000 |
4 |
Commit: Max Magorsch <arzano <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 28 11:46:05 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gentoo-mirrorstats.git/commit/?id=2360bf2e |
7 |
|
8 |
Fix the url for releases and experimental mirrors |
9 |
|
10 |
Signed-off-by: Max Magorsch <arzano <AT> gentoo.org> |
11 |
|
12 |
experimental_mirrors/get-mirror-list-experimental.rb | 6 +----- |
13 |
releases_mirrors/get-mirror-list-releases.rb | 6 +----- |
14 |
2 files changed, 2 insertions(+), 10 deletions(-) |
15 |
|
16 |
diff --git a/experimental_mirrors/get-mirror-list-experimental.rb b/experimental_mirrors/get-mirror-list-experimental.rb |
17 |
index 3e4bae4..0794df3 100755 |
18 |
--- a/experimental_mirrors/get-mirror-list-experimental.rb |
19 |
+++ b/experimental_mirrors/get-mirror-list-experimental.rb |
20 |
@@ -11,11 +11,7 @@ REXML::XPath.each(x, '//*/mirrorgroup[@country]') {|el| |
21 |
country = el.attributes['country'] |
22 |
|
23 |
el.each_element('mirror/uri/') do |mirror| |
24 |
- if mirror[0].to_s.end_with?("/") |
25 |
- puts "#{country.downcase} #{mirror[0].to_s}experimental/" |
26 |
- else |
27 |
- puts "#{country.downcase} #{mirror[0].to_s}/experimental/" |
28 |
- end |
29 |
+ puts "#{country.downcase} #{mirror[0].to_s}" |
30 |
end |
31 |
|
32 |
} |
33 |
|
34 |
diff --git a/releases_mirrors/get-mirror-list-releases.rb b/releases_mirrors/get-mirror-list-releases.rb |
35 |
index bb6b14c..0794df3 100755 |
36 |
--- a/releases_mirrors/get-mirror-list-releases.rb |
37 |
+++ b/releases_mirrors/get-mirror-list-releases.rb |
38 |
@@ -11,11 +11,7 @@ REXML::XPath.each(x, '//*/mirrorgroup[@country]') {|el| |
39 |
country = el.attributes['country'] |
40 |
|
41 |
el.each_element('mirror/uri/') do |mirror| |
42 |
- if mirror[0].to_s.end_with?("/") |
43 |
- puts "#{country.downcase} #{mirror[0].to_s}releases/" |
44 |
- else |
45 |
- puts "#{country.downcase} #{mirror[0].to_s}/releases/" |
46 |
- end |
47 |
+ puts "#{country.downcase} #{mirror[0].to_s}" |
48 |
end |
49 |
|
50 |
} |