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

repo-packages[].packages doesn't support syntax of packages #5030

Open
mtalexan opened this issue Jul 29, 2024 · 0 comments
Open

repo-packages[].packages doesn't support syntax of packages #5030

mtalexan opened this issue Jul 29, 2024 · 0 comments

Comments

@mtalexan
Copy link
Contributor

mtalexan commented Jul 29, 2024

Describe the bug

The packages key in a treefile supports listing whitespace-separated package names, package names that attempt to match the NEVRA follwing the dnf file name rules (e.g. kernel-6.9.11-0.fc39), or version query syntax (e.g. "'kernel = 6.9'").

The repo-packages[].packages however only supports names, and does not support either of the other syntax options. This means it's not possible to pin a package to a specific version from a specific repo, you can theoretically only pin a named package to a repo if you're willing to always take the latest version offered by that repo.

Reproduction steps

  1. List a specific package version as part of the packages key in a working treefile. Example:
repos:
  - fedora
  - updates
 
packages:
  - "'kernel = 6.9.11'"
  - kernel-headers-6.9.4-100.fc40
  1. Verify it works
  2. Move the package item to a repo-packages section. Example:
repos:
  - fedora
  - updates
 
repo-packages:
  - repo: updates
    packages:
      - "'kernel = 6.9.11'"
      - kernel-headers-6.9.4-100.fc40

Expected behavior

The configuration works identically, only adding the assurance that the packages came from the specific repo.

Actual behavior

error: Installing packages: Failed to parse selector: 'kernel = 6.9.11'
error: Installing packages: Failed to parse selector: kernel-headers-6.9.4-100.fc40

System details

  • Using the latest coreos-assembler container image as of today.
  • rpm-ostree --version
rpm-ostree:
 Version: '2024.6'
 Git: 1dda51b264eec8003eb6032f1f41844754ec163b
 Features:
  - rust
  - compose
  - container
  - fedora-integration

Additional information

No response

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