From 485fd9f277fa2d9c0011e9bee8bab92ddbcbefbc Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 23 May 2007 10:43:38 +0000 Subject: Add a 'ignore-previously-merged' config option which gives similar behavior to the --noconfmem emerge option. svn path=/main/trunk/; revision=6592 --- bin/dispatch-conf | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bin/dispatch-conf') diff --git a/bin/dispatch-conf b/bin/dispatch-conf index a62a0ef40..816de0de3 100755 --- a/bin/dispatch-conf +++ b/bin/dispatch-conf @@ -141,6 +141,14 @@ class dispatch: else: newconf = conf['new'] + if newconf == mrgconf and \ + self.options.get('ignore-previously-merged') != 'yes' and \ + len(commands.getoutput(DIFF_CONTENTS % (conf['current'], mrgconf))) == 0: + # The current update is identical to the archived .dist + # version that has previously been merged. + os.unlink(mrgconf) + newconf = conf['new'] + mystatus, myoutput = commands.getstatusoutput( DIFF_CONTENTS % (conf ['current'], newconf)) same_file = 0 == len(myoutput) -- cgit v1.2.3-1-g7c22