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