Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 181938

Summary: webapp-config-1.50.16 errors out during uninstall if htdocs is a symlink
Product: Gentoo Linux Reporter: James Ausmus <james.ausmus>
Component: Current packagesAssignee: Gentoo Web Application Packages Maintainers <web-apps>
Status: RESOLVED FIXED    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description James Ausmus 2007-06-13 18:35:37 UTC
If htdocs is a symlink to another directory, and you have installed a web-app directly into htdocs (no subdir - haven't tested subdir of symlink scenario), then, at the (apparently) very end of using webapp-config to uninstall the web-app, you get the following output:

!empty /var/www/localhost/cgi-bin
!empty /var/www/localhost/error
!empty /var/www/localhost/icons
* Any files or directories listed above must be removed by hand
Traceback (most recent call last):
  File "/usr/sbin/webapp-config", line 44, in ?
    main()
  File "/usr/sbin/webapp-config", line 41, in main
    config.run()
  File "/usr/lib/python2.4/site-packages/WebappConfig/config.py", line 1140, in run
    old['WEB_PN'], old['WEB_PVR']).clean()
  File "/usr/lib/python2.4/site-packages/WebappConfig/server.py", line 163, in clean
    os.rmdir(self.__destd)
OSError: [Errno 20] Not a directory: '/var/www/localhost/htdocs'


Reproducible: Always

Steps to Reproduce:
1. cd /var/www/localhost
2. mv htdocs htdocs.orig
3. mkdir htdocs.webapps
4. ln -s htdocs.webapps htdocs
5. emerge egroupware
6. webapp-config -I egroupware 1.4.001
7. webapp-config -C egroupware 1.4.001
Comment 1 Benedikt Böhm (RETIRED) gentoo-dev 2008-02-17 18:07:04 UTC
fixed in 1.50.16-r3