summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-15 19:23:27 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-15 19:23:27 +0000
commit8c3aff2adc23596aa58e2d030d5c62ea344a6643 (patch)
tree35a777418fe47209cb19418174118abd61288ddc
parente6ff077c61ddfc5fd9cecfb2f2806e13007c43ec (diff)
downloadportage-8c3aff2adc23596aa58e2d030d5c62ea344a6643.tar.gz
portage-8c3aff2adc23596aa58e2d030d5c62ea344a6643.tar.bz2
portage-8c3aff2adc23596aa58e2d030d5c62ea344a6643.zip
fix traceback when EDITOR is not set in the env #118976 by Paul Varner
svn path=/main/trunk/; revision=2564
-rwxr-xr-xbin/dispatch-conf2
1 files changed, 2 insertions, 0 deletions
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':