mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-04 22:53:42 +02:00
Merge branch 'master' of https://github.com/peti/osc
This commit is contained in:
@@ -3918,8 +3918,9 @@ def run_pager(message, tmp_suffix=''):
|
||||
tmpfile.write(message)
|
||||
tmpfile.flush()
|
||||
pager = os.getenv('PAGER', default=get_default_pager())
|
||||
cmd = shlex.split(pager) + [tmpfile.name]
|
||||
try:
|
||||
run_external(pager, tmpfile.name)
|
||||
run_external(*cmd)
|
||||
finally:
|
||||
tmpfile.close()
|
||||
|
||||
|
Reference in New Issue
Block a user