dogtail-devel [Bug 360479] patch needed for Solaris support



Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=360479

  dogtail | Framework | Ver: CVS HEAD





------- Comment #5 from Zack Cerza  2006-10-10 21:41 UTC -------
Ah, good point. If you were on some unknown, non-Solaris distro, you'd see:

Traceback (most recent call last):
  File "<string>", line 1, in ?
  File "dogtail/distro.py", line 329, in ?
    if re.match (".*Solaris", open ("/etc/release").readlines()[0]):
IndexError: list index out of range

I fixed it so the elif clause looks like:

elif os.path.exists ("/etc/release") and \
        re.match (".*Solaris", open ("/etc/release").readline()):


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]