mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-13 17:16:23 +01:00
Merge pull request #1359 from dmach/checkout-dont-print-open-requests
Change 'checkout' command to print open requests only when running in an interactive terminal
This commit is contained in:
commit
1284867dbb
@ -5267,6 +5267,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
server_service_files=opts.server_side_source_service_files,
|
||||
progress_obj=self.download_progress, size_limit=opts.limit_size,
|
||||
meta=opts.meta, outdir=opts.output_dir)
|
||||
if os.isatty(sys.stdout.fileno()):
|
||||
print_request_list(apiurl, project, package)
|
||||
|
||||
elif project:
|
||||
@ -5328,6 +5329,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
server_service_files=opts.server_side_source_service_files,
|
||||
progress_obj=self.download_progress, size_limit=opts.limit_size,
|
||||
meta=opts.meta)
|
||||
if os.isatty(sys.stdout.fileno()):
|
||||
print_request_list(apiurl, project)
|
||||
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user