Mailinglist Archive: opensuse-buildservice (250 mails)

< Previous Next >
Re: [opensuse-buildservice] new osc version 0.116
  • From: James Oakley <jfunk@xxxxxxxxxxxxxx>
  • Date: Fri, 17 Apr 2009 13:53:19 -0300
  • Message-id: <200904171353.21624.jfunk@xxxxxxxxxxxxxx>
On Friday 17 April 2009 11:17:46 Michael Schroeder wrote:
On Fri, Apr 17, 2009 at 10:58:09AM -0300, James Oakley wrote:
Yeah, the functionality would have to be implemented in the source server
so that there would be one remote call, instead of one per package.

I'll take a look at the code and make an attempt.

No please, don't put too much stuff in the poor source server.
Making a call per package can't be that expensive.

jfunk@maus:~> osc ls home:jimfunk | wc -l
81

jfunk@maus:~> cat oscprjsnapshot.sh
#!/bin/bash

SRCPRJ="home:jimfunk"
DSTPRJ="home:jimfunk:snapshot"

APISRV="https://api.opensuse.org";

for pkg in `osc -A $APISRV ls $SRCPRJ` ; do
osc -A $APISRV linkpac --current $SRCPRJ $pkg $DSTPRJ
done

jfunk@maus:~> time ./oscprjsnapshot.sh
Sending meta data...
Done.
Creating _link... Done.
Sending meta data...
Done.
... snip ...

real 14m3.887s
user 0m10.793s
sys 0m3.368s

Ok, maybe not computationally expensive, but it takes way too long.

Imagine how long it would take on openSUSE:Factory :-)

--
James Oakley
jfunk@xxxxxxxxxxxxxx

--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >