[opensuse-factory] Accessing files on OBS
I've recently pointed someone to a patch that openSUSE carries in one of its packages. I've been asked if there is a way to get the content of that file via an HTTPS or other type of request without needing to scrape it from the HTML page. I've trawled the OBS documentation and didn't find anxthing that looked immediately useful? Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Waldorf MIDI Implementation & additional documentation: http://Synth.Stromeko.net/Downloads.html#WaldorfDocs
Am Dienstag, 17. November 2020, 20:26:17 CET schrieb Achim Gratz:
I've recently pointed someone to a patch that openSUSE carries in one of its packages. I've been asked if there is a way to get the content of that file via an HTTPS or other type of request without needing to scrape it from the HTML page. I've trawled the OBS documentation and didn't find anxthing that looked immediately useful?
osc co <project> <package> maybe?
On Tue, 2020-11-17 at 21:01 +0100, Axel Braun wrote:
Am Dienstag, 17. November 2020, 20:26:17 CET schrieb Achim Gratz:
I've recently pointed someone to a patch that openSUSE carries in one of its packages. I've been asked if there is a way to get the content of that file via an HTTPS or other type of request without needing to scrape it from the HTML page. I've trawled the OBS documentation and didn't find anxthing that looked immediately useful?
osc co <project> <package> maybe?
That requires an account I think and the question as I understand is how to geta file _without_ one -- Marcel Kühlhorn Have a lot of fun!
On Dienstag, 17. November 2020, 21:20:33 CET Marcel Kühlhorn wrote:
On Tue, 2020-11-17 at 21:01 +0100, Axel Braun wrote:
Am Dienstag, 17. November 2020, 20:26:17 CET schrieb Achim Gratz:
I've recently pointed someone to a patch that openSUSE carries in one of its packages. I've been asked if there is a way to get the content of that file via an HTTPS or other type of request without needing to scrape it from the HTML page. I've trawled the OBS documentation and didn't find anxthing that looked immediately useful?
osc co <project> <package> maybe?
That requires an account I think and the question as I understand is how to geta file _without_ one
in short it is not possible for anonymous (at least via some official way). The reason behind is that we want to reserve resources for developers and not becoming a public download service with the OBS interface. The good message is that we may will offer a public source publishing. (We do so already for SLE customers). But that needs some more work and agreement. So it won't happen this year anymore. bye adrian -- Adrian Schroeter <adrian@suse.de> Build Infrastructure Project Manager SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany (HRB 247165, AG München), Geschäftsführer: Felix Imendörffer
On Tuesday 2020-11-17 21:25, Adrian Schröter wrote:
On Dienstag, 17. November 2020, 21:20:33 CET Marcel Kühlhorn wrote:
On Tue, 2020-11-17 at 21:01 +0100, Axel Braun wrote:
Am Dienstag, 17. November 2020, 20:26:17 CET schrieb Achim Gratz:
I've recently pointed someone to a patch that openSUSE carries in one of its packages. I've been asked if there is a way to get the content of that file via an HTTPS or other type of request without needing to scrape it from the HTML page. I've trawled the OBS documentation and didn't find anxthing that looked immediately useful?
osc co <project> <package> maybe?
That requires an account I think and the question as I understand is how to geta file _without_ one
in short it is not possible for anonymous (at least via some official way).
OBS offers anonymous routes (URIs), and uses them for remotelinking. osc just does not offer accessing these. The clunky way is to either talk XML manually, or install a local dummy OBS to utilize the remotelink (and osc-authenticate with one's local instance).
On Mittwoch, 18. November 2020, 00:35:52 CET Jan Engelhardt wrote:
On Tuesday 2020-11-17 21:25, Adrian Schröter wrote:
On Dienstag, 17. November 2020, 21:20:33 CET Marcel Kühlhorn wrote:
On Tue, 2020-11-17 at 21:01 +0100, Axel Braun wrote:
Am Dienstag, 17. November 2020, 20:26:17 CET schrieb Achim Gratz:
I've recently pointed someone to a patch that openSUSE carries in one of its packages. I've been asked if there is a way to get the content of that file via an HTTPS or other type of request without needing to scrape it from the HTML page. I've trawled the OBS documentation and didn't find anxthing that looked immediately useful?
osc co <project> <package> maybe?
That requires an account I think and the question as I understand is how to geta file _without_ one
in short it is not possible for anonymous (at least via some official way).
OBS offers anonymous routes (URIs), and uses them for remotelinking.
yes, but it is not part of official api and we may need to close them on miss usage. So please do not promote them.
osc just does not offer accessing these. The clunky way is to either talk XML manually, or install a local dummy OBS to utilize the remotelink (and osc-authenticate with one's local instance).
as I said, the real solution would come, similar to https://sources.suse.com for openSUSE. -- Adrian Schroeter <adrian@suse.de> Build Infrastructure Project Manager SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany (HRB 247165, AG München), Geschäftsführer: Felix Imendörffer
On 17/11/2020 20.26, Achim Gratz wrote:
I've recently pointed someone to a patch that openSUSE carries in one of its packages. I've been asked if there is a way to get the content of that file via an HTTPS or other type of request without needing to scrape it from the HTML page. I've trawled the OBS documentation and didn't find anxthing that looked immediately useful?
If it is part of Factory, you find downloadable patches in https://github.com/bmwiedemann/openSUSE/tree/master/packages/b/bash This problem was one of the reasons for me to create this git mirror. Ciao Bernhard M.
Bernhard M. Wiedemann writes:
If it is part of Factory, you find downloadable patches in https://github.com/bmwiedemann/openSUSE/tree/master/packages/b/bash
This problem was one of the reasons for me to create this git mirror.
Thank you, this is _very_ useful. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf Blofeld V1.15B11: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
participants (6)
-
Achim Gratz
-
Adrian Schröter
-
Axel Braun
-
Bernhard M. Wiedemann
-
Jan Engelhardt
-
Marcel Kühlhorn