On 2013-07-31 13:22:42 +0200, Karsten Keil wrote: <SNIP>
I looked at the osc-wrapper.py and was thinking that it should be easy to do. Simple give the commandline.Osc() call the arguments for the osc command like
osccli = commandline.Osc("copypac","-e", org, pkg, new) r = babysitter.run(osccli)
The constructor parameters are not interpreted as a "command".
But this does not work, it seems the arguments are ignored, I get always the osc help page (same as running osc with no arguments).
Something like this should work: from osc import commandline cli = commandline.Osc() cli.main(['osc', 'ls', 'home:Marcus_H']) If needed I can also adjust the babysitter so that you can pass a "command" to its "run" method. Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org