Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Using ed with dispatch-conf / 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
BullShark
n00b
n00b


Joined: 06 Jul 2012
Posts: 15

PostPosted: Sat Jul 14, 2012 5:22 pm    Post subject: Using ed with dispatch-conf / etc-update Reply with quote

Code:
--- /etc/portage/._cfg0001_package.accept_keywords      2012-07-14 07:03:09.018589550 -0500
+++ /etc/portage/._mrg0001_package.accept_keywords      1969-12-31 18:00:00.000000000 -0600
@@ -1,4 +0,0 @@
-=sys-devel/gcc-4.6.2 ~x86
-net-irc/weechat ~x86
-#required by bleachbit (argument)
-=sys-apps/bleachbit-0.9.2 ~x86

>> (1 of 2) -- /etc/portage/package.accept_keywords
>> q quit, h help, n next, e edit-new, z zap-new, u use-new
   m merge, t toggle-merge, l look-merge:

                                                              > #required by bleachbit (argument)
                                                              > =sys-apps/bleachbit-0.9.2 ~x86
%help
ed:     Edit then use both versions, each decorated with a header.
eb:     Edit then use both versions.
el or e1:       Edit then use the left version.
er or e2:       Edit then use the right version.
e:      Discard both versions then edit a new one.
l or 1: Use the left version.
r or 2: Use the right version.
s:      Silently include common lines.
v:      Verbosely include common lines.
q:      Quit.
%


I just ran dispatch-conf as suggested. I always get confused here. Most of the time, I'll find a way to write out both files and then vimdiff them. I'd like to use vimdiff as a replacement to the diff tool used here, but because of some reason, vimdiff can't be used instead according to the gentoo handbook.

All I want to do is append the lines from the new file to the existing one.
_________________
Blog: http://linuxinnovations.blogspot.com
Software: https://github.com/BullShark/JSpeak
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