Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dispatch-conf broken
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Apreche
Guru
Guru


Joined: 18 Sep 2003
Posts: 506
Location: Beacon, NY

PostPosted: Sun Nov 07, 2004 10:02 pm    Post subject: dispatch-conf broken Reply with quote

So I just did a little emerge -uDva world after a weekend away from my pc. Quite a few updates. Not surprising since I run a ~x86 system. But, this update has caused dispatch-conf to stop working. Not pleasant.
Code:
# dispatch-conf
RCS file: /etc/config-archive/etc/conf.d/crypto-loop,v
1.2 locked
done
/etc/config-archive/etc/conf.d/crypto-loop,v  <--  /etc/config-archive/etc/conf.d/crypto-loop
file is unchanged; reverting to previous revision 1.2
done
/etc/config-archive/etc/conf.d/crypto-loop,v  -->  /etc/config-archive/etc/conf.d/crypto-loop
revision 1.1.1.1
done
RCS file: /etc/config-archive/etc/conf.d/crypto-loop,v
retrieving revision 1.1.1.1
retrieving revision 1.2
Merging differences between 1.1.1.1 and 1.2 into /etc/config-archive/etc/conf.d/crypto-loop; result to stdout
Traceback (most recent call last):
  File "/usr/sbin/dispatch-conf", line 309, in ?
    d.grind (portage.settings ['CONFIG_PROTECT'])
  File "/usr/sbin/dispatch-conf", line 145, in grind
    confs = filter (f, confs)
  File "/usr/sbin/dispatch-conf", line 135, in f
    self.replace(newconf, conf['current'])
  File "/usr/sbin/dispatch-conf", line 222, in replace
    os.system((DIFF_CONTENTS % (curconf, newconf)) + '>>' + self.config["log-file"])
AttributeError: dispatch instance has no attribute 'config'

What do you make of this? How can I fix it? Do I just have to wait for another update?
Back to top
View user's profile Send private message
ThePsychoHobbit
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2004
Posts: 86

PostPosted: Sun Nov 07, 2004 10:10 pm    Post subject: Reply with quote

I was experiencing the same problem, so I did a search on the forums. Here's the thread with the solution, and the solution itself:

https://forums.gentoo.org/viewtopic.php?t=247802

Tyris wrote:
This seems to be a problem with the dispatch-conf in portage-2.0.51-r3. You can easily fix this by editing line 222 of dispatch-conf:

Original:
os.system((DIFF_CONTENTS % (curconf, newconf)) + '>>' + self.config["log-file"])

Corrected:
os.system((DIFF_CONTENTS % (curconf, newconf)) + '>>' + self.options["log-file"])

I've added this fix to bug 70282 about this problem, so hopefully a new version will include it.
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4975
Location: Gothenburg, Sweden

PostPosted: Tue Nov 30, 2004 10:07 am    Post subject: Reply with quote

Moved from Other Things Gentoo. Please see https://forums.gentoo.org/viewtopic.php?t=247802 and https://forums.gentoo.org/viewtopic.php?t=184107
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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