[aur-general] Custom arch repository

Eli Schwartz eschwartz at archlinux.org
Fri Aug 16 17:29:55 UTC 2019


On 8/16/19 11:42 AM, pavel.finkelshtein at gmail.com 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1601 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/aur-general/attachments/20190816/10ae0957/attachment.sig>


More information about the aur-general mailing list