some list-pkgs options work only in combinations
Fixes: https://pagure.io/koji/issue/1779
This commit is contained in:
parent
d560bfa35d
commit
242fbd00af
1 changed files with 7 additions and 0 deletions
|
|
@ -2977,6 +2977,13 @@ def anon_handle_list_pkgs(goptions, session, args):
|
||||||
opts['event'] = event['id']
|
opts['event'] = event['id']
|
||||||
event['timestr'] = time.asctime(time.localtime(event['ts']))
|
event['timestr'] = time.asctime(time.localtime(event['ts']))
|
||||||
print("Querying at event %(id)i (%(timestr)s)" % event)
|
print("Querying at event %(id)i (%(timestr)s)" % event)
|
||||||
|
|
||||||
|
if not opts['tagID'] and not opts['userID'] and not opts['pkgID']:
|
||||||
|
if opts['event']:
|
||||||
|
parser.error("--event and --ts makes sense only with --tag, --owner or --package")
|
||||||
|
if opts['show_blocked']:
|
||||||
|
parser.error("--show-blocked makes sense only with --tag, --owner or --package")
|
||||||
|
|
||||||
data = session.listPackages(**opts)
|
data = session.listPackages(**opts)
|
||||||
if not data:
|
if not data:
|
||||||
print("(no matching packages)")
|
print("(no matching packages)")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue