tags 413687 patch
thanks

Hi,

This bug has also been reported in Ubuntu [1] where I uploaded a small patch
which makes guml fail gracefully if ~/.guml/ doesn't exist and point the user to
/usr/share/doc/guml/README.

[1] https://launchpad.net/bugs/133694

Here is the patch:

diff -Nru /tmp/t9zbkGzPF6/guml-0.3/uml.py /tmp/dZ0n44rJ5U/guml-0.3/uml.py
--- /tmp/t9zbkGzPF6/guml-0.3/uml.py 2005-10-05 06:25:56.000000000 +0200
+++ /tmp/dZ0n44rJ5U/guml-0.3/uml.py 2007-08-22 17:46:09.000000000 +0200
@@ -36,6 +36,11 @@
 
    namematch = re.compile('^([a-zA-Z0-9_-]+)\.conf$')
    
+   if os.path.isdir("%s/.guml" % os.getenv("HOME")) == False:
+       print "%s/.guml doesn't exist or is not a directory." %
os.getenv("HOME")
+       print "Please read /usr/share/doc/guml/README to know how to setup
guml."
+       sys.exit(1)
+
    conflist = {}
    for entry in os.listdir("%s/.guml" % os.getenv("HOME")):
        matches = namematch.match(entry)

-- 
Adrien Cunin aka Adri2000

Attachment: signature.asc
Description: Digital signature

Reply via email to