Looking at the lockfile format I can see a repeating pattern of:
```
- url: https://someurl
  repoid: foo
- url: https://someotherurl
  repoid: foo
- url: https://anotherurl
  repoid: bar
```
IOW any tool which wants to process this has to analyze every single package to 
categorize it under some repository (optionally denoted by repoid), so if 
repoid isn't provided such a tool is free to choose how to group uncategorized 
packages (assigning them to 1 or multiple repos). Wouldn't it be better if we 
simplified such a tool's job by explicitly hinting at which repo what packages 
belong? I mean in my mind that would match the current `.repo` file format 
better. Consider the following example of what I just wrote:
```
lockfileVersion: 1
arches:
  - arch: x86_64
    repos:
      - repoid: updates
        rpms:
          - url: 
https://mirrors.nic.cz/pub/fedora/linux/updates/38/Everything/x86_64/Packages/v/vim-enhanced-9.1.031-1.fc38.x86_64.rpm
          - url: 
https://mirrors.nic.cz/pub/fedora/linux/updates/38/Everything/x86_64/Packages/v/vim-common-9.1.031-1.fc38.x86_64.rpm
          - url: 
https://mirrors.nic.cz/pub/fedora/linux/updates/38/Everything/x86_64/Packages/v/vim-filesystem-9.1.031-1.fc38.noarch.rpm
     - repoid: fedora
       rpms:
          - url: 
https://mirrors.nic.cz/pub/fedora/linux/releases/38/Everything/x86_64/os/Packages/g/gpm-libs-1.20.7-42.fc38.x86_64.rpm
     - repoid: fedora-sources
       rpms:
         - url: 
https://mirrors.nic.cz/pub/fedora/linux/releases/38/Everything/source/tree/Packages/g/gpm-1.20.7-42.fc38.src.rpm
   # A SINGLE SINK REPO FOR THE REST PACKAGES NOT BELONGING TO A SPECIFIC REPO
     - rpms:
         - url: http://example.com/foo.x86_64.rpm
         - url: http://example.com/bar.x86_64.rpm
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/2908#discussioncomment-8464552
You are receiving this because you are subscribed to this thread.

Message ID: 
<rpm-software-management/rpm/repo-discussions/2908/comments/8464...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to