Mailinglist Archive: opensuse-buildservice (287 mails)

< Previous Next >
[opensuse-buildservice] new osc plugin
  • From: Michal Marek <mmarek@xxxxxxx>
  • Date: Thu, 27 Sep 2007 15:19:07 +0200
  • Message-id: <46FBADCB.5050307@xxxxxxx>
Hi buildservice addicts,

As an exercise to learn a certain programming language, I wrote a plugin
for osc that provides an ftp-like interface to the buildservice api.
It's main purpose is playing with the api rather than anything
meaningful, but you might find it useful or more eficient for some tasks
than the builtin osc commands.

A small demo:
$ osc ftp
osc /source >
### get the latest zypp bits
osc /source > cd /build/zypp:svn/openSUSE_10.2/i586/_repository/
osc /build/zypp:svn/openSUSE_10.2/i586/_repository > ls
cmake.rpm
libzypp-devel.rpm
libzypp.rpm
yast2-pkg-bindings.rpm
### oops, no zypper here??
osc ... > cat ../zypper/_status
<status package="zypper" code="expansion error">
  <details>nothing provides gcc-c++ &gt;= 4.2</details>
</status>
### oic :-(

### to upgrade itself
osc ... > lcd /home/mmarek/.osc-plugins/    # no '~' expansion, sorry
osc ... > cd /source/home:michal-m/osc-ftp/
osc ... > get ftp.py
GET ftp.py
osc ... > quit
$ osc ftp
osc ... >

:)

Note that you can use the Tab key for commandline completion, even for
remote paths (these might take a bit longer for the first time).

Get it from
http://download.opensuse.org/repositories/home:/michal-m/openSUSE_Factory/

have a nice day,
Michal
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >