Skip to content
This repository has been archived by the owner on Jun 6, 2018. It is now read-only.

issues with custom mirrorlist #130

Closed
oberon-manjaro opened this issue Mar 20, 2018 · 4 comments
Closed

issues with custom mirrorlist #130

oberon-manjaro opened this issue Mar 20, 2018 · 4 comments

Comments

@oberon-manjaro
Copy link
Member

I just ran
sudo pacman-mirrors -ic Germany
and selected the three top listed mirrors.

3selected

Feedback:

.: INFO User generated mirror list
--------------------------
.: INFO Custom mirror file saved: /var/lib/pacman-mirrors/custom-mirrors.json
.: INFO Writing mirror list
   Germany         : http://mirror.philpot.de/manjaro/unstable/$repo/$arch
   Germany         : http://mirror.philpot.de/manjaro/unstable/$repo/$archunstable/$repo/$arch
.: INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist

As 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.
This is also what /etc/pacman.d/mirrorlist actually contains.
Content of /var/lib/pacman-mirrors/custom-mirrors.json:

[
    {
        "country": "Germany",
        "protocols": [
            "https",
            "http"
        ],
        "url": "http://mirror.philpot.de/manjaro/"
    },
    {
        "country": "Germany",
        "protocols": [
            "https",
            "http"
        ],
        "url": "http://mirror.philpot.de/manjaro/"
    },
    {
        "country": "Germany",
        "protocols": [
            "https"
        ],
        "url": "https://repo.rhindon.net/manjaro/"
    }
]

So, the third mirror is listed here, but again philpot http twice, and not the https version.
Another 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 ...

@fhdk
Copy link
Member

fhdk commented Mar 23, 2018

That is indeed weird

@fhdk
Copy link
Member

fhdk commented Mar 23, 2018

@Oberon2007
That was a nasty one. It has never been in my scenarios that a user would select multiple protocols on the same mirror.

Though it should have - a coder mantra is

"Think like a user" - "A user will double click a button" - "Disable on first click"

But I nailed it - at least I think so.

@fhdk
Copy link
Member

fhdk commented Mar 23, 2018

Thank you for spotting this.

The condition was indeed not handled properly.

@fhdk fhdk closed this as completed Mar 23, 2018
@fhdk
Copy link
Member

fhdk commented Mar 25, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants