1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-13 17:16:23 +01:00

Fix deletereq for repository

Do not require --all if --repository is given. There
are no packages touched when removing a repository for
a home project.
This commit is contained in:
lethliel 2020-01-16 09:01:43 +01:00
parent 88abf11bd3
commit 897c23c0ab

View File

@ -2006,7 +2006,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
else:
raise oscerr.WrongArgs('Please specify at least a project.')
if not opts.all and package is None:
if not opts.all and package is None and not opts.repository:
raise oscerr.WrongOptions('No package name has been provided. Use --all option, if you want to request to delete the entire project.')
if opts.repository: