Mailinglist Archive: opensuse-buildservice (181 mails)

< Previous Next >
Re: [opensuse-buildservice] How to extend osc locally (or: issuing arbitrary requests to the api)
  • From: "Dr. Peter Poeml" <poeml@xxxxxxx>
  • Date: Wed, 25 Jul 2007 13:07:21 +0200
  • Message-id: <20070725110721.GE32711@xxxxxxx>
On Thu, Jul 19, 2007 at 12:32:47PM +0200, Dr. Peter Poeml wrote:
> Since I just implemented a new command, which I figured could be handy,
> I am posting this as an example.
> 
> You can use it after copying the attached file to ~/.osc-plugins.
> 
> It allows to issue "raw" HTTP requests to the api by specifying the URL
> and possible data or file to send, like:
> 
>   osc req /source/home:poeml
> or
>   osc req -m PUT -f /etc/fstab source/home:poeml/test5/myfstab
> 
> Thus, it can be used in a curl-like fashion, with authentification
> handled by osc.

FYI, the newest osc package release incorporates this command.

Peter
-- 
"WARNING: This bug is visible to non-employees. Please be respectful!"
 
SUSE LINUX Products GmbH
Research & Development
< Previous Next >
References