On 8/16/19 11:42 AM, [email protected] wrote:
> Hi everyone,
> 
> So I have the repo built (BTW, Travis CI is able to upload files to
> pages by itself) here: 
> https://github.com/asm0dey/arch-kodi-devel-builder/tree/gh-pages/x86_64
> 
> It's built with `repo-add` command and looks correct to me. Next
> question to everybody: how will pacman detect database without
> directory listing?

$ curl -s
https://asm0dey.github.io/arch-kodi-devel-builder/x86_64/repo.db |
bsdtar -tf -
kodi-bin-devel-18.4rc1pre20-1/
kodi-bin-devel-18.4rc1pre20-1/desc
kodi-dev-devel-18.4rc1pre20-1/
kodi-dev-devel-18.4rc1pre20-1/desc
kodi-devel-18.4rc1pre20-1/
kodi-devel-18.4rc1pre20-1/desc
kodi-eventclients-devel-18.4rc1pre20-1/
kodi-eventclients-devel-18.4rc1pre20-1/desc
kodi-gbm-devel-18.4rc1pre20-1/
kodi-gbm-devel-18.4rc1pre20-1/desc
kodi-tools-texturepacker-devel-18.4rc1pre20-1/
kodi-tools-texturepacker-devel-18.4rc1pre20-1/desc
kodi-wayland-devel-18.4rc1pre20-1/
kodi-wayland-devel-18.4rc1pre20-1/desc

So the pacman.conf setting would be:

[repo]
Server = https://asm0dey.github.io/arch-kodi-devel-builder/$arch

I advise using a more descriptive name for the repository instead of
"repo.db".

Aside for that, pacman only cares about being told the name of the .db,
and then it downloads that directly (by concatenating the Server
directive, a "/", the repository name, and ".db"), getting all other
information by using a database parser, not via regular expressions on
an HTML file.

As I said on Wednesday:

> If you want an HTML index, you can generate your own or rely on
> webserver software to do so automatically, but it would be entirely for
> the interactive viewing pleasure of the user.

-- 
Eli Schwartz
Bug Wrangler and Trusted User

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to