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

support $EDITOR with arguments (bnc#619215)

This commit is contained in:
Ludwig Nussel 2010-07-02 11:32:07 +02:00
parent 28441bfaeb
commit d59942c961

View File

@ -2632,8 +2632,10 @@ def run_pager(message):
def run_editor(filename):
editor = os.getenv('EDITOR', default=get_default_editor())
cmd = editor.split(' ')
cmd.append(filename)
return subprocess.call([ editor, filename ])
return subprocess.call(cmd)
def edit_message(footer='', template='', templatelen=30):
delim = '--This line, and those below, will be ignored--\n'