anatol / pacoloco

Caching proxy server for Arch Linux pacman
MIT License
216 stars 30 forks source link

pacoloco.yaml urls: syntax for EndeavourOS #91

Closed fhteagle closed 1 year ago

fhteagle commented 1 year ago

Tried to follow the example in #37 for EndeavourOS repos , but I am getting a spurious /os/ path segment added to the download URLs, causing download failure.

my pacoloco.yaml

...
repos:
  archlinux_x86_64:
    urls:
      - http://mirrors.gigenet.com/archlinux
...
  endeavouros:
    urls:
      - https://mirrors.gigenet.com/endeavouros/repo
...

But in docker container logs:

...
2023-09-07T16:34:07.799325913Z downloader.go:102: downloading https://mirrors.gigenet.com/endeavouros/repo/endeavouros/os/x86_64/endeavouros-keyring-20230523-1-any.pkg.tar.zst
...

Correct URL for that repo would be:

https://mirrors.gigenet.com/endeavouros/repo/endeavouros/x86_64/endeavouros-keyring-20230523-1-any.pkg.tar.zst

I also tried massaging the pacoloco.yaml with various $repo and $arch token combinations, but in every case I get an extra /os/ path segment ....

What do I need to change the endeavouros URL lines to?

Thanks

anatol commented 1 year ago

Hi,

The /os part of the url you mentioned comes from the client (your computer). To remove this prefix you need to edit the client pacman.conf and check the part that points to pacoloco cache.

fhteagle commented 1 year ago

Found it. The spurious /os/ path segment was coming from endeavouros-mirrorlist file. Thanks for knocking my thinking loose lol.