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

rquery does not allow to sort or output (by) priority #2201

Open
michael-o opened this issue Nov 27, 2023 · 0 comments
Open

rquery does not allow to sort or output (by) priority #2201

michael-o opened this issue Nov 27, 2023 · 0 comments

Comments

@michael-o
Copy link
Contributor

michael-o commented Nov 27, 2023

Consider this config:

# cat /etc/pkg/FreeBSD.conf
FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/quarterly",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
# cat /usr/local/etc/pkg/repos/*
ldadw-base: {
    URL: "https://...",
    enabled: YES,
    priority: 10
}

Now let's rquery:

# pkg rquery -U %R:%v pkg
FreeBSD:1.20.8
ldadw-base:1.20.9

Neither pkg-rquery nor give me the chance to sort by priority. There is no output pattern for it, therefore I cannot even determine which should be taken...To add some multirepo support in Poudriere this one fails: https://github.com/freebsd/poudriere/blob/abc58e8177fe669b200d0d0f6bd12c70c9086a6c/src/share/poudriere/common.sh#L3831

Either pkg-rquery would sort by priority or a new output pattern is added for this.

This is somewhat related to #1186.

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

1 participant