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

Use vi as the fallback editor on Fedora; vim not guaranteed to exist

This commit is contained in:
Michel Alexandre Salim 2010-07-01 14:48:15 +02:00 committed by Adrian Schröter
parent 0fbfcb4fdb
commit eb75d7b2f7

View File

@ -2603,6 +2603,8 @@ def get_default_editor():
dist = platform.dist()[0]
if dist == 'debian':
return 'editor'
else if dist == 'fedora':
return 'vi'
return 'vim'
return 'vi'