You are not logged in.

#1 2020-08-14 23:28:13

Orangutan
Member
Registered: 2020-08-14
Posts: 2
Website

add-repo File not found error but exists

Really weird issue: `add-repo` reports that a file does not exist yet `ls` and a glob finds it. I'm running it in GitHub Actions which uses the `archlinux` Docker image. I'm not sure if this is a possible GitHub Actions issue, Pacman issue or user error, not really sure how it could be the first two.

The GitHub Actions workflow is fairly clear with what it does, and things it does behind the scenes is mostly shown in the logs.

Relative subdirectory

- Link to logs
- Workflow file

cd and ls

- Link to logs
- Workflow file

Absolute path

- Link to logs
- Workflow file

GitHub Community Post

I haven't been able to replicate this locally which makes me even more confused. Are there some cases where `add-repo` may falsely report a file not being found? I don't think it's a permissions issue as everything should be as root. If you haven't used GitHub Actions before, you can fork the repo, make edits and it will run on push. It's also completely free for public repos, so if you want to investigate the environment you should be able to.

Mod edit - Removed pictures of text
https://wiki.archlinux.org/index.php/Co … s_and_code

Last edited by Orangutan (2020-08-15 01:42:25)

Offline

#2 2020-08-16 14:26:08

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,057

Re: add-repo File not found error but exists

It looks like all your workflow files use repo-add some-path-to-db visual-studio-code-insiders-*.pkg.tar.zst .

man repo-add wrote:

       repo-add will update a package database by reading a built package file. Multiple packages to add can be specified on the command
       line.

Try providing single files .

P.S.
If you use  -R / --remove option of repo-add you won't need to rm the old files manually .
See repo-add manpage for more info.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2020-08-16 16:05:01

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: add-repo File not found error but exists

I think this is a github issue. It should work on local repositories, even with multiple packages (in fact adding multiple packages using globs is the default usecase imho and described in th wiki).

Btw. it is repo-add, not add-repo.

Offline

#4 2020-08-16 19:46:54

Orangutan
Member
Registered: 2020-08-14
Posts: 2
Website

Re: add-repo File not found error but exists

Turns out I was completely blind and missed bold text in the docs. It was a directory not a file sigh. Thanks for the recommendation, didn't know that was a flag

Last edited by Orangutan (2020-08-16 19:47:34)

Offline

Board footer

Powered by FluxBB