Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 181938 - webapp-config-1.50.16 errors out during uninstall if htdocs is a symlink
Summary: webapp-config-1.50.16 errors out during uninstall if htdocs is a symlink
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-13 18:35 UTC by James Ausmus
Modified: 2008-02-17 18:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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