Hi,
I just tried to update websvn from 2.3.1 to 2.3.2 (+vhosts)
Here is the line I used (with webapp-config ~1.50.18):
$ webapp-config -V -U -d websvn websvn 2.3.2

And here was the result:

=====================
[...]
*   Parameter my_dotconfig: ".webapp"
*   Parameter vhost_server_uid: "root"
*   Parameter vhost_perms_serverowned_dir: "0775"
*   Parameter vhost_config_default_dirs: "default-owned"
*   Parameter my_htdocsdir: "/usr/share/webapps/websvn/2.3.2/htdocs"
*   Parameter vhost_default_uid: "root"
*   Parameter my_bugsurl: "http://bugs.gentoo.org/";
*   Parameter my_appdir: "/usr/share/webapps/websvn/2.3.2"
*   Parameter my_hookscriptsdir: "/usr/share/webapps/websvn/2.3.2/hooks"
*   Parameter vhost_perms_configowned_file: "0644"
*   Parameter g_link_type: "soft"
*   Parameter vhost_config_uid: "0"
*   Parameter cat: ""
*   Parameter g_myname: "/usr/sbin/webapp-config"
*   Parameter vhost_link_type: "soft"
*   Parameter pvr: "2.3.2"
*   Parameter vhost_hostname: "user"
*   Parameter my_etcconfig: "/etc/vhosts/webapp-config"
*   Parameter wa_configlist:
*   "/usr/share/webapps/websvn/2.3.2/config-files"
*   Parameter my_hostrootdir: "/usr/share/webapps/websvn/2.3.2/hostroot"
*   Parameter wa_installsbase: "installs"
*   Parameter wa_solist:
*   "/usr/share/webapps/websvn/2.3.2/server-owned-files"
*   Parameter my_iconsbase: "icons"
*   Parameter vhost_perms_configowned_dir: "0755"
*   Parameter my_errorsbase: "error"
*   Parameter my_persistdir: "/var/db/webapps/websvn/2.3.2"
*   Parameter g_htdocsdir: "/var/.daemon/www/user/htdocs"
*   Parameter my_version: "1.50.18"
*   Parameter vhost_server_gid: "root"
*   Parameter vhost_root: "/var/.daemon/www/user"
*   Parameter g_configprefix: "._cfg"
*   Parameter wa_postinstallinfo:
*   "/usr/share/webapps/websvn/2.3.2/post-install-instructions.txt"
*   Parameter vhost_server: "apache"
*   Parameter vhost_perms_installdir: "0755"
*   Parameter g_installdir: "websvn"
*   Parameter my_cgibindir:
*   "/usr/share/webapps/websvn/2.3.2/hostroot/cgi-bin"
*   Parameter my_appsuffix: "websvn/2.3.2"
*   Parameter vhost_config_virtual_files: "virtual"
*   Parameter g_cgibindir: "/var/.daemon/www/user/cgi-bin"
*   Parameter my_approot: "/usr/share/webapps"
*   Parameter wa_installs: "/var/db/webapps/websvn/2.3.2/installs"
*   Parameter my_htdocsbase: "htdocs"
*   Parameter my_cgibinbase: "cgi-bin"
*   Parameter my_conf_version: "7"
*   Parameter vhost_subdomain_1: "user"
* 
* Parameters from section "USER":
* 
* All config file checks successfully passed
* Do we have websvn-2.3.2 available?
*   Yes, we do
* Install directory is: /var/.daemon/www/user/htdocs/websvn
Traceback (most recent call last):
  File "/usr/sbin/webapp-config-2.6", line 44, in <module>
    main()
  File "/usr/sbin/webapp-config-2.6", line 41, in main
    config.run()
  File "/usr/lib64/python2.6/site-packages/WebappConfig/config.py", line
  1335, in run
    old['WEB_CATEGORY'] + old['WEB_PN']):
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'


=====================
I found that 'WEB_CATEGORY' == None.
I think it needs a fix, in my case I added 
WEB_CATEGORY=""
to my websvn/.webapp file and the update went fine.
[ Not sure it is a bug to report ]


Raph

Reply via email to