From: Mike Frysinger Date: Sun, 15 Jan 2006 19:23:27 +0000 (-0000) Subject: fix traceback when EDITOR is not set in the env #118976 by Paul Varner X-Git-Tag: v2.1_pre4~30 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8c3aff2adc23596aa58e2d030d5c62ea344a6643;p=portage.git fix traceback when EDITOR is not set in the env #118976 by Paul Varner svn path=/main/trunk/; revision=2564 --- diff --git a/bin/dispatch-conf b/bin/dispatch-conf index 0940927fc..586b98759 100755 --- a/bin/dispatch-conf +++ b/bin/dispatch-conf @@ -204,6 +204,8 @@ class dispatch: show_new_diff = 1 continue elif c == 'e': + if not os.environ.has_key('EDITOR'): + os.environ['EDITOR']='nano' os.system(os.environ['EDITOR'] + ' ' + newconf) continue elif c == 'z':