[opensuse-buildservice] new osc plugin

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++ >= 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@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

On September 27, 2007, Michal Marek wrote:
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.
Very nice. You couldn't have posted it at a better time. I built a package last night and for some reason, it wasn't pushed to the mirrors, even though download.opensuse.org saw it. Zypper and wget just gave me 404's. I was about to break down and get it directly from the api, but decided to check opensuse-buildservice first, and here I see your ftp plugin, making that operation much more comfortable. -- James Oakley jfunk@funktronics.ca --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

On Thu, Sep 27, 2007 at 11:23:17AM -0300, James Oakley wrote:
On September 27, 2007, Michal Marek wrote:
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.
Very nice.
You couldn't have posted it at a better time. I built a package last night and for some reason, it wasn't pushed to the mirrors, even though download.opensuse.org saw it. Zypper and wget just gave me 404's.
Hm, incidentally I was building a package in devel:languages:python last night, and it was not even pushed to download.opensuse.org. It just didn't turn up for hours. Today it's there... If the package was on download.opensuse.org, but not on a mirror you were redirected to, I'd be very interested to find out what was wrong, because that should not happen. Do you remember which mirror that was? I noticed a number of downloads last night, at around 1:14, for a package named ganeti. However those were not redirected. Was that you? According to the logs, I see 404 from download.opensuse.org though, for requests _not_ redirected. Maybe there is something wrong with pushing built packages from the buildservice to download.opensuse.org. Peter -- "WARNING: This bug is visible to non-employees. Please be respectful!" SUSE LINUX Products GmbH Research & Development

On September 28, 2007, Dr. Peter Poeml wrote:
On Thu, Sep 27, 2007 at 11:23:17AM -0300, James Oakley wrote:
On September 27, 2007, Michal Marek wrote:
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. If the package was on download.opensuse.org, but not on a mirror you were redirected to, I'd be very interested to find out what was wrong, because that should not happen. Do you remember which mirror that was?
I do not, unfortunately.
I noticed a number of downloads last night, at around 1:14, for a package named ganeti. However those were not redirected. Was that you? According to the logs, I see 404 from download.opensuse.org though, for requests _not_ redirected.
That was me. When I did a search for ganeti on software.opensuse.org the URL it gave me returned 404. -- James Oakley jfunk@funktronics.ca --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

On Fri, Sep 28, 2007 at 11:26:32AM -0300, James Oakley wrote:
On September 28, 2007, Dr. Peter Poeml wrote:
On Thu, Sep 27, 2007 at 11:23:17AM -0300, James Oakley wrote:
On September 27, 2007, Michal Marek wrote:
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. If the package was on download.opensuse.org, but not on a mirror you were redirected to, I'd be very interested to find out what was wrong, because that should not happen. Do you remember which mirror that was?
I do not, unfortunately.
I noticed a number of downloads last night, at around 1:14, for a package named ganeti. However those were not redirected. Was that you? According to the logs, I see 404 from download.opensuse.org though, for requests _not_ redirected.
That was me. When I did a search for ganeti on software.opensuse.org the URL it gave me returned 404.
Ah, that still explains part of the problem. You went to software.opensuse.org, which believed that the package was published, and sent you to download.opensuse.org. However, the package was not (yet arrived on the latter -- which is the exact same symptom I have been hit by, also. (Thus, we didn't even get as far as being redirected to a mirror) Michael, Andreas, one of you have an idea why the publishing might be "slow"? All I know, from debugging on download.o.o, that the package I was waiting for just didn't turn up for hours. No matter if I triggered a rebuild. Project was devel:languages:python for me, and all builds were finished. That software.o.o does send users to download.o.o for packages which are not necessarily there, seems a problem to me, too. Peter -- "WARNING: This bug is visible to non-employees. Please be respectful!" SUSE LINUX Products GmbH Research & Development

On Thu, Sep 27, 2007 at 03:19:07PM +0200, Michal Marek wrote:
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.
Grin :-) Peter -- "WARNING: This bug is visible to non-employees. Please be respectful!" SUSE LINUX Products GmbH Research & Development
participants (3)
-
Dr. Peter Poeml
-
James Oakley
-
Michal Marek