Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72292 - dispatch-conf AttributeError: no attribute 'config'
Summary: dispatch-conf AttributeError: no attribute 'config'
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-11-23 16:16 UTC by Iain Buchanan
Modified: 2005-07-14 06:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Iain Buchanan 2004-11-23 16:16:12 UTC
dispatch-conf starts ok, finds config files, displays menu of choices, but selecting 'u' then shows this error:

>> q quit, h help, n next, e edit-new, z zap-new, u use-new
   m merge, t toggle-merge, l look-merge:
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 208, in grind
    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 happens regardless of the type of file (binary / text)

Also, if I manually update this file and use dispatch-conf again, it happens with the next file.

Reproducible: Always
Steps to Reproduce:
1. Run dispatch-conf
2. select 'u'



$ emerge info
Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0,
2.6.9-gentoo-r4 i686)
=================================================================
System uname: 2.6.9-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.6.6
distcc 2.18.2 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe -g"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -g"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks nostrip sandbox
sfperms"GENTOO_MIRRORS="ssh://iain:asdfpoiu@gauntlet:/usr/portage
ftp://mirror.pacific.net.au/linux/Gentoo http://mirror.gentoo.gr.jp
ftp://mirrors.tds.net/gentoo http://mirrors.tds.net/gentoo"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa apache2 arts avi berkdb bitmap-fonts cdr crypt cups dvd dvdr
encode esd f77 fam flac foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2
guile imagemagick imlib irda java jpeg libg++ libwww mad mikmod mmx motif
mozilla mpeg mysql ncurses nls oggvorbis opengl pam pdflib perl png postgres
ppds python quicktime readline samba sdl spell sse ssl svga tcltk tcpd tetex
tiff truetype x86 xml xml2 xmms xv zlib"
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2004-12-02 10:08:45 UTC
sync and merge portage again?
Comment 2 Iain Buchanan 2004-12-06 20:16:13 UTC
Hmm, I re-emerged the original version many times (2.0.51-r3) but that didn't fix it.  Somewhere between there and here (2.0.51-r7) though it has been fixed.
Comment 3 Jason Stubbs (RETIRED) gentoo-dev 2005-07-14 05:48:04 UTC
Fixed on or before 2.0.51.22-r1 
Comment 4 Jason Stubbs (RETIRED) gentoo-dev 2005-07-14 06:58:46 UTC
Looking through the batch of bugs, I'm not sure that some of these are 
actually fixed in stable. Others, the requirements have possibly changed after 
the initial fix was committed. 
 
If you think this bug has been closed incorrectly, please reopen or ask that 
it be reopened.