mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-02 05:33:39 +02:00
Merge branch 'fix_deletereq_for_repo' of https://github.com/lethliel/osc
Support "osc deletereq <project> -r <REPO>" (previously, the -r option could only be used if a <package> was specified as well).
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user