summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Webappconfig/config.py: Adds check for package name and versionDevan Franchini2013-08-031-2/+15
| | | | | | | | | | This check is done in the run() function if self.work == "clean" to avoid uninstalling a webapp if the package name and version being listed exist, but aren't the ones located in the .webapp in the specified directory taken from the -d flag. X-Gentoo-Bug: 461410 X-Gentoo-Bug-URL: https://bugs.gentoo.org/461410
* WebappConfig/{db,filetype,permissions}.py: code cleanupVincent Brillault2013-04-223-11/+19
| | | | | | | | | | | | | | 1) Add a __str__ method on class PermissionMap for debugging. 2) Fix a wrong debug mesasge in WebappSource. 3) Replace __fix(i).strip() by __fix(i) in FileType since __fix already strip the input. 4) Add missing cases in FileType comments Thanks Devan Franchini <twitch153@hotmail.com> for testing. X-Gentoo-Bug: 231482 X-Gentoo-Bug-URL: https://bugs.gentoo.org/231482 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* WebappConfig/{config,worker}.py: add option to copy filesDevan Franchini2013-03-292-0/+52
| | | | | | | | | | | This adds an option to copy the webapp files rather than hardlink them even if they are on the same filesystem. While this takes up more disk space, it allows one to modify different instances of webapp installations without affecting other instances. X-Gentoo-Bug: 231482 X-Gentoo-Bug-URL: https://bugs.gentoo.org/231482 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* WebappConfig/wrapper.py: do not use portage.root to retrive $ROOTDevan Franchini2013-03-231-1/+1
| | | | | | | | | On a prefix system, portage.root equals portage.settings['EROOT'] and not portage.settings['ROOT'], but we need the latter. X-Gentoo-Bug: 434894 X-Gentoo-Bug-URL: https://bugs.gentoo.org/434894 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* WebappConfig/worker.py: correct permissions for server-owned dirsVincent Brillault2013-03-131-0/+2
| | | | | | | | | | | | | | | app-admin/webapp-config uses 'os.makedirs(dst_dir, perm(0x755))' to create new directories without any 'os.chown' after. If the configuration contains 'vhost_perms_serverowned_dir="0775"' or vhost_perms_serverowned_dir="g+w" those permissions will be filtered with the default python umask which is '022', resulting in a '0755' permission instead of a '0775' one. Thanks Devan Franchini <twitch153@hotmail.com> for testing. X-Gentoo-Bug: 434894 X-Gentoo-Bug-URL: https://bugs.gentoo.org/434894 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* WebappConfig/ebuild.py: don't ignore vhost_config_dir valueChristian Affolter2013-03-091-1/+1
| | | | | | | | Thanks Devan Franchini <twitch153@hotmail.com> for testing. X-Gentoo-Bug: 438276 X-Gentoo-Bug-URL: https://bugs.gentoo.org/438276 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* WebappConfig/db.py: do not leave behind stray install filesEray Aslan2013-02-111-0/+2
| | | | | | | | | Thanks Devan Franchini <twitch153@hotmail.com> for testing. X-Gentoo-Bug: 213130 X-Gentoo-Bug-URL: https://bugs.gentoo.org/213130 Reported-by: Priit Laes <plaes@plaes.org> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* Do not use cmp() for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2012-06-292-13/+2
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* Update WebappConfig.version.WCVERSION.Arfrever Frehtes Taifersar Arahesis2012-06-291-1/+1
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* Delete obsolete __version__ attributes.Arfrever Frehtes Taifersar Arahesis2012-06-2911-21/+0
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* Update configparser imports for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2012-06-291-16/+23
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* Partially synchronize WebappConfig.sandbox.get_open_fds() with ↵Arfrever Frehtes Taifersar Arahesis2012-06-291-1/+6
| | | | | | portage.process.get_open_fds(). Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* Use range() instead of xrange() for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2012-06-291-1/+1
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* Use str.join() instead of string.join() for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2012-06-292-5/+5
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* Use print() function for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2012-06-295-39/+40
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* Add support for www-servers/nginx and www-servers/gatlingAnthony G. Basile2011-12-302-3/+27
|
* Use isinstance() for compatibility with Python 3.Arfrever2011-12-302-5/+5
| | | | | Reported-By: Arfrever <arfrever@gentoo.org> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* Forward-compat WEB_CATEGORY variableMichael2011-12-301-0/+4
| | | | | | | | | | | Versions previous to 1.50.18 did not include WEB_CATEGORY which was stored in ${webapp_installed_dir}/.webapp, but newer versions require it. Make old installations forward-compatible by pretending this variable exists. Reported-By: Patrick <mail@patrick-nagel.net> Signed-off-by: Anthony G. Basile <blueness@gentoo.org> X-Gentoo-Bug: 355295 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=355295
* Don't use has_key() for compatibility with Python 3.Arfrever2011-12-303-13/+13
| | | | | Reported-By: Arfrever <arfrever@gentoo.org> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* Update syntax of octal numbers for compatibility with Python 3.Arfrever2011-12-304-5/+5
| | | | | Reported-By: Arfrever <arfrever@gentoo.org> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* Delete some unused variables and imports.Arfrever2011-12-308-20/+10
| | | | | Reported-By: Arfrever <arfrever@gentoo.org> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* Update syntax of setting exceptions for compatibility with Python 3.Arfrever2011-12-307-16/+16
| | | | | Reported-By: Arfrever <arfrever@gentoo.org> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* Don't set unused exception variables.Arfrever2011-12-303-7/+7
| | | | | Reported-By: Arfrever <arfrever@gentoo.org> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* Update the docs for --luiMichael (kensington)2011-12-291-5/+3
| | | | | | | Reported-By: Maurice Volaski <mvolaski@aecom.yu.edu> Signed-off-by: Anthony G. Basile <blueness@gentoo.org> X-Gentoo-Bug: 379581 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=379581
* Remove aolserver and add cherokee to the list of supportedMichael (kensington)2011-12-291-11/+0
| | | | | | | | | servers in the manpage. Reported-By: Fab <netfab@gmail.com> Signed-off-by: Anthony G. Basile <blueness@gentoo.org> X-Gentoo-Bug: 386505 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=386505
* Fix overwrite of existing config_protected filesPeter Volkov2011-08-052-2/+7
| | | | | | | | | | | webapp-config records the md5sum of previously modified config file and any subsequent update removes that file since md5sum of file in database (.webapp-app-version) is the same as on the disc. Reported-By: Philippe Chaintreuil Signed-off-by: Anthony G. Basile <blueness@gentoo.org> X-Gentoo-Bug: 243260 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=243260
* Removed old .svn.ignoreAnthony G. Basile2011-06-142-2/+0
|
* Changed net-www to www-serversAnthony G. Basile2011-06-141-1/+2
|
* * bug fix: webapp-config-1.50.16 errors out during uninstall htdocs is a ↵Gunnar Wrobel2007-11-091-1/+1
| | | | | | symlink (Gentoo bug #181938) svn path=/trunk/webapp-config/; revision=56
* Prepare a new experimental webapp-config release.Gunnar Wrobel2007-05-111-1/+1
| | | | svn path=/trunk/webapp-config/; revision=49
* set_vars() should not be needed. The python config system will construct the ↵Gunnar Wrobel2007-05-101-55/+31
| | | | | | configuration values on get and all %()s parts will get expanded during the get() call. Updating only my_appsuffix should do the job. svn path=/trunk/webapp-config/; revision=48
* Fixed doc test.Gunnar Wrobel2007-04-271-1/+1
| | | | svn path=/trunk/webapp-config/; revision=45
* Version bumpGunnar Wrobel2007-04-271-1/+1
| | | | svn path=/trunk/webapp-config/; revision=44
* Do not use absolute path names by defaultGunnar Wrobel2007-04-271-2/+4
| | | | svn path=/trunk/webapp-config/; revision=41
* Fix for package_installedGunnar Wrobel2007-04-271-1/+7
| | | | svn path=/trunk/webapp-config/; revision=40
* Fixed installed package check in server.pyGunnar Wrobel2007-04-271-5/+3
| | | | svn path=/trunk/webapp-config/; revision=39
* Fixed installed package check in server.pyGunnar Wrobel2007-04-271-2/+2
| | | | svn path=/trunk/webapp-config/; revision=38
* Fixed installed package check in server.pyGunnar Wrobel2007-04-272-3/+7
| | | | svn path=/trunk/webapp-config/; revision=37
* Fixed sorting in doctest.Gunnar Wrobel2007-04-271-1/+1
| | | | svn path=/trunk/webapp-config/; revision=36
* Improved error message.Gunnar Wrobel2007-04-271-1/+2
| | | | svn path=/trunk/webapp-config/; revision=35
* Revert server installation check for now.Gunnar Wrobel2007-04-271-1/+3
| | | | svn path=/trunk/webapp-config/; revision=34
* Category supportGunnar Wrobel2007-04-271-49/+90
| | | | svn path=/trunk/webapp-config/; revision=33
* Category support, absolute path support.Gunnar Wrobel2007-04-271-77/+234
| | | | svn path=/trunk/webapp-config/; revision=32
* Header and doctests.Gunnar Wrobel2007-04-271-6/+6
| | | | svn path=/trunk/webapp-config/; revision=31
* Category support and a root fix.Gunnar Wrobel2007-04-271-7/+18
| | | | svn path=/trunk/webapp-config/; revision=30
* Another fix for the sandbox support and wrapper fixes.Gunnar Wrobel2007-04-271-7/+31
| | | | svn path=/trunk/webapp-config/; revision=29
* Category support for dotconfigGunnar Wrobel2007-04-271-9/+22
| | | | svn path=/trunk/webapp-config/; revision=28
* Header.Gunnar Wrobel2007-04-271-3/+3
| | | | svn path=/trunk/webapp-config/; revision=27
* Fixes for the new wrapper code.Gunnar Wrobel2007-04-271-8/+8
| | | | svn path=/trunk/webapp-config/; revision=26
* Wrapper update for category support and paludis.Gunnar Wrobel2007-04-271-50/+119
| | | | svn path=/trunk/webapp-config/; revision=25