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

Add option to query OBS repo by package rather than binary name. #1036

Open
sp1ritCS opened this issue Jun 21, 2021 · 2 comments
Open

Add option to query OBS repo by package rather than binary name. #1036

sp1ritCS opened this issue Jun 21, 2021 · 2 comments
Labels

Comments

@sp1ritCS
Copy link

Is your feature request related to a problem? Please describe.
It could be useful showing all "binaries" (so packages + their subpackages) from a single link. Rather than linking all of them separately. If for example you try to download a library by pressing the "Download package" button, software-o-o will only show the sourcepackage (or in case of a dpkg package, nothing)

Describe the solution you'd like
Add a http request param that let's me query by package rather than name.

- curl -u user:pass "https://api.opensuse.org/search/published/binary/id?match=project='home:sp1rit'+and+name='clatexmath'"
+ curl -u user:pass "https://api.opensuse.org/search/published/binary/id?match=project='home:sp1rit'+and+package='clatexmath'"

software-o-o should then offer all packages as download (not sure how to implement that visually, esp. since it'd be great to have them in logical groups [e.g. libname-dev (dpkg) and name-devel (rpm) could be considered the "same" package ])

Describe alternatives you've considered
Linking each (sub-) package individually

Additional context

@agraul agraul added the Feature label Jun 23, 2021
@hellcp
Copy link
Member

hellcp commented Mar 23, 2022

Technically you can already do that, by searching for source packages, since those will represent the obs package objects

@sp1ritCS
Copy link
Author

yes, that is also what the "download package" button on OBS does, but:

  1. that doesn't work for non rpm packages
  2. it isn't ideal when you just want to present users with a graphical overview of all available packages

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

No branches or pull requests

3 participants