Hi I was having problems (Internal error) when trying to pack an application that I have under subversion control. I've detected the problem was in the app_cleanup function in gluon/admin.py (it tried to remove files, but raised an error when tried to remove the .svn directory). I guess this will happen with any control version system that creates this kind of hidden directory.
Attached is a very simple patch that solved the problem for me. Regards.
--- admin.py.orig 2011-05-26 19:04:56.000000000 +0200 +++ admin.py 2011-05-26 19:00:00.000000000 +0200 @@ -104,7 +104,7 @@ if os.path.exists(path): for f in os.listdir(path): try: - os.unlink(os.path.join(path,f)) + if f[:1]!='.': os.unlink(os.path.join(path,f)) except IOError: r = False @@ -113,7 +113,7 @@ if os.path.exists(path): for f in os.listdir(path): try: - recursive_unlink(os.path.join(path,f)) + if f[:1]!='.': recursive_unlink(os.path.join(path,f)) except IOError: r = False @@ -122,7 +122,7 @@ if os.path.exists(path): for f in os.listdir(path): try: - os.unlink(os.path.join(path,f)) + if f[:1]!='.': os.unlink(os.path.join(path,f)) except IOError: r = False return r