ige-mac-bundler and symlinks

A symbolic link in my install directory is giving me grief. The first problem with it is that recursive_rm pukes on it:
File "/usr/local/src/ige-mac-bundler/bundler/bundler.py", line 47, in recursive_rm
os.rmdir(dirname)
OSError: [Errno 20] Not a directory: '/Users/john/gnucash-bundler/GnuCash.app/Contents/Resources/share/guile/1.6/slib'

This is easily fixed with:
index f345a7f..9aa3290 100644
--- a/bundler/bundler.py
+++ b/bundler/bundler.py
@@ -39,7 +39,7 @@ class Bundler:
files = dircache.listdir(dirname)
for file in files:
path = os.path.join (dirname, file)
- if os.path.isdir(path):
+ if os.path.isdir(path) and not os.path.islink(path):
self.recursive_rm(path)
else:
retval = os.unlink(path)

(That's against a git-pull from today.)

Could you paste a bit longer

Could you paste a bit longer stack trace please? I'd like to see the cause of the issue rather than just patching the symptom..,

OK, Here you

OK, Here you go:
/Users/john/gtk/inst/lib/python2.5/site-packages/_xmlplus/parsers/expat.py:4: RuntimeWarning: Python C API version mismatch for module pyexpat: This Python has API version 1012, module pyexpat has version 1013.
from pyexpat import *
Running install name tool
Going through prefix: /Users/john/gtk/inst
Traceback (most recent call last):
File "/usr/local/bin/ige-mac-bundler", line 6, in ?
bundler.main.main(sys.argv[1:])
File "/usr/local/src/ige-mac-bundler/bundler/main.py", line 18, in main
bundler.run()
File "/usr/local/src/ige-mac-bundler/bundler/bundler.py", line 489, in run
self.recursive_rm(final_path)
File "/usr/local/src/ige-mac-bundler/bundler/bundler.py", line 44, in recursive_rm
self.recursive_rm(path)
File "/usr/local/src/ige-mac-bundler/bundler/bundler.py", line 44, in recursive_rm
self.recursive_rm(path)
File "/usr/local/src/ige-mac-bundler/bundler/bundler.py", line 44, in recursive_rm
self.recursive_rm(path)
File "/usr/local/src/ige-mac-bundler/bundler/bundler.py", line 44, in recursive_rm
self.recursive_rm(path)
File "/usr/local/src/ige-mac-bundler/bundler/bundler.py", line 44, in recursive_rm
self.recursive_rm(path)
File "/usr/local/src/ige-mac-bundler/bundler/bundler.py", line 44, in recursive_rm
self.recursive_rm(path)
File "/usr/local/src/ige-mac-bundler/bundler/bundler.py", line 48, in recursive_rm
os.rmdir(dirname)
OSError: [Errno 20] Not a directory: '/Users/john/gnucash-bundler/GnuCash.app/Contents/Resources/share/guile/1.6/slib'

Note that it happens if

$ manjusri:/Users/john> ls -l gnucash-bundler/GnuCash.app/Contents/Resources/share/guile/1.6/slib
lrwxr-xr-x 1 john staff 29 Jul 13 16:51 gnucash-bundler/GnuCash.app/Contents/Resources/share/guile/1.6/slib@ -> /Users/john/gtk/inst/lib/slib

but not if
lrwxr-xr-x 1 john staff 17 Jul 13 16:45 slib@ -> ../../../lib/slib