install-repository: fix double output option, add retries, no double repo suffix
As it turns out, we use both --output and -O and we want
just the former. This works, but produces this warning:
Command:
---v---v---v---v---v---
curl --output /etc/yum.repos.d/group_yggdrasil-latest-centos-stream-$releasever.repo.repo -LO https://copr.fedorainfracloud.org/coprs/g/yggdrasil/latest/repo/centos-stream-$releasever/group_yggdrasil-latest-centos-stream-$releasever.repo
---^---^---^---^---^---
Stdout:
---v---v---v---v---v---
---^---^---^---^---^---
Stderr:
---v---v---v---v---v---
Warning: Permanently added '3.140.238.9' (ED25519) to the list of known hosts.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 396 100 396 0 0 8284 0 --:--:-- --:--:-- --:--:-- 8250
Warning: Got more output options than URLs
---^---^---^---^---^---
With that also add retries, print the repository content output and do not add double .repo prefix if not needed.
Signed-off-by: Miroslav Vadkerti mvadkert@redhat.com