Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Suggested improvements for etc-update
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
mihochan
Apprentice
Apprentice


Joined: 16 Apr 2002
Posts: 296
Location: Melbourne again

PostPosted: Thu May 22, 2003 6:20 am    Post subject: Suggested improvements for etc-update Reply with quote

I reckon the following would be worthwhile improvement for etc-update

That etc-update be configurable to take some graphical program like KDE's kompare as the 'diff' utility.

I for one can't really read the diff output readily.

Tom
_________________
In the long run we are all dead - Keynes
Back to top
View user's profile Send private message
djn
n00b
n00b


Joined: 18 Apr 2003
Posts: 4
Location: Aarhus, Denmark

PostPosted: Thu May 22, 2003 9:24 am    Post subject: Re: Suggested improvements for etc-update Reply with quote

mihochan wrote:

That etc-update be configurable to take some graphical program like KDE's kompare as the 'diff' utility.

The major point here is configurable. I believe it to be VERY unwise to have etc-update depend on any X11 related application. But I find diff output to be rather readable... At least for this use.

/Daniel
Back to top
View user's profile Send private message
asimon
l33t
l33t


Joined: 27 Jun 2002
Posts: 979
Location: Germany, Old Europe

PostPosted: Thu May 22, 2003 11:29 am    Post subject: Reply with quote

You can already configure what diff program etc-update uses:

From my /etc/etc-update.conf:
Code:

# vim-users: you CAN use vimdiff for diff_command. (see NOTE_1)
#diff_command="diff -uN %file1 %file2"
diff_command="colordiff -uN %file1 %file2"
using_editor=0
#diff_command="vim -d %file1 %file2"
#using_editor=1


I just tested it with
Code:

diff_command="kompare %file1 %file2"


and it called kompare (this is the kde utility you mentioned) from etc-update, although I got a lot of debugging messages from KDE which where annoying, so something like
"kompare %file1 %file2 &>/dev/null" would probably be better. But it seems to work already.

Cheers,
Andreas
Back to top
View user's profile Send private message
mihochan
Apprentice
Apprentice


Joined: 16 Apr 2002
Posts: 296
Location: Melbourne again

PostPosted: Fri May 23, 2003 5:16 am    Post subject: Reply with quote

Yeah,

you're right. things are a bit slow and tedious with 'kompare'.
i ended up writing a script to bring everything up to date.

tom
_________________
In the long run we are all dead - Keynes
Back to top
View user's profile Send private message
grant.mcdorman
Apprentice
Apprentice


Joined: 29 Jan 2003
Posts: 295
Location: Toronto, ON, Canada

PostPosted: Fri May 23, 2003 7:38 pm    Post subject: graphical comparision Reply with quote

I use something called xxdiff, personally - it's worlds better than kompare. I have a little script invoked by etc-update which tries to contact the X server, and uses xxdiff if that works; otherwise it falls back to the original mechanism.

Regretably, I can't post it since I'm at work right now. :(
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum