$author = "Martin" ;
>
> > What version of X are you running?
>
> ahhhh... rainbows!
>
> XFree86 Version 4.1.0.1
just running an 'apt-get upgrade' and notice this for the first time...
---------------------------------------------------------
Setting up xserver-xfree86 (4.1.0-14) ...
Traceback (most recent call last):
File "/usr/sbin/update-configlets", line 70, in ?
newline = string.replace(line, "<configlet-name>", cfglet_name)
NameError: name 'cfglet_name' is not defined
dpkg: error processing xserver-xfree86 (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
xserver-xfree86
E: Sub-process /usr/bin/dpkg returned an error code (1)
---------------------------------------------------------
/usr/sbin/update-configlets is a python script and the relevant sections
look like this
---------------------------------------------------------
cfglet_file = open("/usr/share/configlets/%s/main.py" % dir)
for line in cfglet_file.readlines():
if string.find(line, "__displayname__") != -1:
cfglet_match = re.search('[\'"](.*)[\'"]', line)
cfglet_name = cfglet_match.group(1)
break
cfglet_file.close()
---------------------------------------------------------
and this
---------------------------------------------------------
for line in desktop_template:
newline = string.replace(line, "<configlet-name>", cfglet_name
newline = string.replace(newline, "<configlet-path>", cfglet_path)
---------------------------------------------------------
but /usr/share/configlets/xserver-common/main.py does not have a line with
'__displayname__' in it... in fact comparing it to the other 'main.py's for
other systems in looks like a totally different format for the script.
upgrading 'configlet' has changed the script /usr/sbin/update-configlets and
it just calls /etc/configlet.d/configlet-frontends. this looks like a total
rewrite of the previous script and the xserver-common error has gone away.
i guess i'll see whether this was related to my problem of X crashing...
marty
--
Skirwan - "And if pigs can fly, and I can ride one, and they fly me to hell,
and it just froze over, and we all have ice cream..." [1]
talonyx - "I really need to stop reading Slashdot while on codeiene..." [2]
[1] - http://slashdot.org/comments.pl?sid=28984&cid=3113144
[2] - http://slashdot.org/comments.pl?sid=28984&cid=3113355
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug