Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dispatch-conf and attribute 'config'
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
mercurator
Tux's lil' helper
Tux's lil' helper


Joined: 09 Aug 2004
Posts: 92
Location: Slovenia

PostPosted: Sat Nov 06, 2004 8:54 am    Post subject: Dispatch-conf and attribute 'config' Reply with quote

So far I've been using the dispatch-conf without a problem. This morning I ran it to update some files and then this showed up:

Code:
RCS file: /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
Marging 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 gring
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'


This is the first time I've had problems with dispatch-conf. Does anyone have an idea what is wrong here?

George
_________________
"Ignorantia non est Argumentum" - Benedict de Spinoza
Back to top
View user's profile Send private message
Tyris
n00b
n00b


Joined: 04 May 2003
Posts: 44
Location: Cincinnati, OH

PostPosted: Sun Nov 07, 2004 2:09 am    Post subject: Reply with quote

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
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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