{"action":"created","issue":{"url":"https://api.github.com/repos/manjaro/pacman-mirrors/issues/130","repository_url":"https://api.github.com/repos/manjaro/pacman-mirrors","labels_url":"https://api.github.com/repos/manjaro/pacman-mirrors/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/manjaro/pacman-mirrors/issues/130/comments","events_url":"https://api.github.com/repos/manjaro/pacman-mirrors/issues/130/events","html_url":"https://github.com/manjaro/pacman-mirrors/issues/130","id":307073145,"number":130,"title":"issues with custom mirrorlist","user":{"login":"oberon2007","id":11800714,"avatar_url":"https://avatars0.githubusercontent.com/u/11800714?v=4","gravatar_id":"","url":"https://api.github.com/users/oberon2007","html_url":"https://github.com/oberon2007","followers_url":"https://api.github.com/users/oberon2007/followers","following_url":"https://api.github.com/users/oberon2007/following{/other_user}","gists_url":"https://api.github.com/users/oberon2007/gists{/gist_id}","starred_url":"https://api.github.com/users/oberon2007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oberon2007/subscriptions","organizations_url":"https://api.github.com/users/oberon2007/orgs","repos_url":"https://api.github.com/users/oberon2007/repos","events_url":"https://api.github.com/users/oberon2007/events{/privacy}","received_events_url":"https://api.github.com/users/oberon2007/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-20T23:19:58Z","updated_at":"2018-03-23T17:21:32Z","closed_at":null,"author_association":"OWNER","body":"I just ran\r\n`sudo pacman-mirrors -ic Germany`\r\nand selected the three top listed mirrors.\r\n\r\n![3selected](https://user-images.githubusercontent.com/11800714/37687405-ce6f4700-2c9b-11e8-810a-d2eef08dae2c.png)\r\n\r\nFeedback:\r\n```\r\n.: INFO User generated mirror list\r\n--------------------------\r\n.: INFO Custom mirror file saved: /var/lib/pacman-mirrors/custom-mirrors.json\r\n.: INFO Writing mirror list\r\n   Germany         : http://mirror.philpot.de/manjaro/unstable/$repo/$arch\r\n   Germany         : http://mirror.philpot.de/manjaro/unstable/$repo/$archunstable/$repo/$arch\r\n.: INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist\r\n```\r\nAs you can see the http philpot mirror is listed twice, once with a link containing `/$archunstable/`, which doesn't seem right. The https link is missing, so is the third mirror.\r\nThis is also what **/etc/pacman.d/mirrorlist** actually contains.\r\nContent of **/var/lib/pacman-mirrors/custom-mirrors.json**:\r\n```\r\n[\r\n    {\r\n        \"country\": \"Germany\",\r\n        \"protocols\": [\r\n            \"https\",\r\n            \"http\"\r\n        ],\r\n        \"url\": \"http://mirror.philpot.de/manjaro/\"\r\n    },\r\n    {\r\n        \"country\": \"Germany\",\r\n        \"protocols\": [\r\n            \"https\",\r\n            \"http\"\r\n        ],\r\n        \"url\": \"http://mirror.philpot.de/manjaro/\"\r\n    },\r\n    {\r\n        \"country\": \"Germany\",\r\n        \"protocols\": [\r\n            \"https\"\r\n        ],\r\n        \"url\": \"https://repo.rhindon.net/manjaro/\"\r\n    }\r\n]\r\n```\r\nSo, the third mirror is listed here, but again philpot http twice, and not the https version.\r\nAnother time I had selected two mirrors, ragenet and netzspielplatz and only netzspielplatz got listed. Somehow I cannot reproduce this now, but something seems to not work properly here ..."},"comment":{"url":"https://api.github.com/repos/manjaro/pacman-mirrors/issues/comments/375739722","html_url":"https://github.com/manjaro/pacman-mirrors/issues/130#issuecomment-375739722","issue_url":"https://api.github.com/repos/manjaro/pacman-mirrors/issues/130","id":375739722,"user":{"login":"fhdk","id":22748698,"avatar_url":"https://avatars1.githubusercontent.com/u/22748698?v=4","gravatar_id":"","url":"https://api.github.com/users/fhdk","html_url":"https://github.com/fhdk","followers_url":"https://api.github.com/users/fhdk/followers","following_url":"https://api.github.com/users/fhdk/following{/other_user}","gists_url":"https://api.github.com/users/fhdk/gists{/gist_id}","starred_url":"https://api.github.com/users/fhdk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fhdk/subscriptions","organizations_url":"https://api.github.com/users/fhdk/orgs","repos_url":"https://api.github.com/users/fhdk/repos","events_url":"https://api.github.com/users/fhdk/events{/privacy}","received_events_url":"https://api.github.com/users/fhdk/received_events","type":"User","site_admin":false},"created_at":"2018-03-23T17:21:32Z","updated_at":"2018-03-23T17:21:32Z","author_association":"COLLABORATOR","body":"Thank you for spotting this.\r\n\r\nThe condition was indeed not handled properly."}}
{"actor":{"display_login":"fhdk"}}