./repoutil --products | grep -v testing | grep -v Deprec | awk '{print $1}' | xargs -I % ./repoutil --add-product % testing
which runs slowly because (this) version of xargs doesn't want to expand more than one argument in place. Could a future repoutil update take arguments such that the "list" part is at the end, rather than in the middle?
Maybe a reasonable workaround would be something like "repoutil --with-branch testing --add 012-3456 034-1234 ..." If I were to submit a patch that added that, would that be acceptable?
--Jim
I've been running Reposado for almost a year now. Apart from the initial setup, I find I rarely add more than a handful of updates to a branch at any one time.
Would people expect to be able to do this, though?
repoutil --with-branch testing --add-product foo bar --remove-product ipsum lorum?
-Greg
>
> --Jim
>
Either way, the "list part at the end" is a common unixy thing.
As to the other construct, I suppose someone could expect to do that, but I'm a bit surprised you can add and remove at the same time as it is.
--Jim
You currently can't, or at least, it's not properly supported.
-Greg
repoutil --remove-product xxx-yyyy testing --add-product www-zzzz production
Might do the right thing, but:
repoutil --remove-product xxx-yyyy www-zzzz testing --add-product aaa-bbbb production
Might not. I should review the code.
-Greg
-Greg
repoutil --add-product `repoutil --products | grep -v testing | grep - i -v deprecated |awk '{printf "%s ",$1}'` testing
This processes much faster
grz
Arjen