I still haven't fixed this correctly, so just assign $repo the
value of $i, this seems to work for -r -S|update. Before I got
`config for ... not found'.