GNOME Bugzilla – Bug 360479
patch needed for Solaris support
Last modified: 2006-10-10 21:41:02 UTC
Patch for dogtail to work on Solaris.
Created attachment 74244 [details] [review] patch to allow dogtail to work on Solaris
Created attachment 74246 [details] [review] updated patch Please ignore previous patch. This patch is the same, but has a useful comment.
Fixed in the development version. The fix will be available in the next major release. Thank you for your bug report.
I'm a little wary of the patch as it stands: if "/etc/release" exists, but the regex on the next line doesn't match the first line of it, then distro is None, and no exception is thrown - is this a problem?
Ah, good point. If you were on some unknown, non-Solaris distro, you'd see: Traceback (most recent call last):
+ Trace 75697
if re.match (".*Solaris", open ("/etc/release").readlines()[0]):
I fixed it so the elif clause looks like: elif os.path.exists ("/etc/release") and \ re.match (".*Solaris", open ("/etc/release").readline()):