as root when i emerge, i don't always have X available, but i have meld in my cfg-update.conf, so i can sux cfg-update with it.
cfg-update when it should just check for config files, and not do update (so it does not need meld) complains before my emerge process:
* GUI not available, unable to run the mergetool set in /etc/cfg-update.conf!
Run cfg-update from within an X-terminal if you want to use a GUI mergetool.
If you are getting this from within an X-terminal, you should try running
"xhost +localhost" as the user who started the X-server.
If you use this script on a system without an X-server you should permanently
set the MERGETOOL variable in /etc/cfg-update.conf to vimdiff or sdiff.
I recommend the more advanced vimdiff on systems without an X-server.
See http://people.zeelandnet.nl/xentric for vimdiff usage instructions.
this is not desired.
Steps to Reproduce:
clean as it was.
What exactly are you complaining about here? If you don't want to use GUI, then don't stick a GUI diff tool into cfg-update.conf?! Anything unclear about the message? Sigh...
Stephan, what are your thoughts on this? Should the check for the merge tool be skipped when not merging?
Balint is right, I have just fixed it like this:
The GUI is only needed for updating without the -a option.
So I've put the GUI-check in a separate subroutine that is only called from within the update_files subroutine, and only if the -a or -p flag is not found.
So "cfg-update -l" works because itwithout a GUI and no message is displayed.
"cfg-update -au" works because automatic-only-updating doesn't need the GUI.
"cfg-update -pu" works because pretend-update doesn't need the GUI.
But with "cfg-update -u" it will display the message and exit.
Will post cfg-update-1.8.0-r6 soon...
A temporary workaround is to use "cfg-update -l -t diff", that sets the mergetool to CLI diff.
Thanks Balint for reporting this :)
Harald, I've posted an update (1.8.0-r6)
See bug #165041
This bug can be closed.
you're fast :)