Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shows all possibilities when rebuildctl pkgs log matches multiple packages #87

Open
jvoisin opened this issue Oct 23, 2021 · 2 comments

Comments

@jvoisin
Copy link
Sponsor Contributor

jvoisin commented Oct 23, 2021

rebuilderd@rebuilderd:~$ rebuildctl pkgs  log
Error: Failed to fetch package

Caused by:
    Filter matched too many packages: 2
rebuilderd@rebuilderd:~$

It would be nice to have a list of all the matching packages, to be able to filter them without having to guess.

@kpcyrd
Copy link
Owner

kpcyrd commented Oct 23, 2021

rebuildctl pkgs ls and rebuildctl pkgs log share the same filters, so you can use this to create a filter that uniquely matches a single package:

root@tails-rebuilder ~ # rebuildctl pkgs ls
[GOOD ] tails-amd64-4.23.img 4.23                    (tails, stable, amd64, #5) "https://mirrors.wikimedia.org/tails/stable/tails-amd64-4.23/tails-amd64-4.23.img"
[GOOD ] tails-amd64-4.23.iso 4.23                    (tails, stable, amd64, #4) "https://mirrors.wikimedia.org/tails/stable/tails-amd64-4.23/tails-amd64-4.23.iso"
root@tails-rebuilder ~ # rebuildctl pkgs ls --name tails-amd64-4.23.img
[GOOD ] tails-amd64-4.23.img 4.23                    (tails, stable, amd64, #5) "https://mirrors.wikimedia.org/tails/stable/tails-amd64-4.23/tails-amd64-4.23.img"
root@tails-rebuilder ~ # rebuildctl pkgs log --name tails-amd64-4.23.img | head
+ IMG_PATH=/tmp/rebuilderd4ZzFlj/inputs/tails-amd64-4.23.img
+ basename /tmp/rebuilderd4ZzFlj/inputs/tails-amd64-4.23.img
+ sed -nr s/tails-amd64-([0-9a-z~\.]+)\.[^\]+/\1/p
+ sed s/~/-/g
+ TAG=4.23
+ REPO_URL=https://gitlab.tails.boum.org/tails/tails.git
+ export TAILS_BUILD_OPTIONS=nomergebasebranch forcecleanup
+ virsh vol-list default
+ awk {print $1}
+ grep ^tails-builder-
root@tails-rebuilder ~ # 

@jvoisin
Copy link
Sponsor Contributor Author

jvoisin commented Oct 23, 2021

Maybe suggest doing so in the rebuildctl pkgs log error message?

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

No branches or pull requests

2 participants