summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* version.py: Updates version numberHEADmasterDevan Franchini2017-06-221-1/+1
|
* Merge pull request #6 from SpiderX/masterDevan Franchini2017-05-223-2/+15
|\ | | | | Adds uWSGI server support
| * Adds uWSGI server supportVladimir Pavljuchenkov (SpiderX)2017-01-093-2/+15
| |
* | config/webapp-config: Updates config to use eprefixDevan Franchini2017-02-151-3/+3
| | | | | | | | | | X-Gentoo-Bug: 608018 X-Gentoo-Bug-URL: https://bugs.gentoo.org/608018
* | server.py: Uses EPREFIX variableDevan Franchini2017-02-151-1/+2
| | | | | | | | | | X-Gentoo-Bug: 608018 X-Gentoo-Bug-URL: https://bugs.gentoo.org/608018
* | db.py: Uses EPREFIX variableDevan Franchini2017-02-151-3/+4
| | | | | | | | | | X-Gentoo-Bug: 608018 X-Gentoo-Bug-URL: https://bugs.gentoo.org/608018
* | config.py: Uses EPREFIX variableDevan Franchini2017-02-151-6/+8
| | | | | | | | | | X-Gentoo-Bug: 608018 X-Gentoo-Bug-URL: https://bugs.gentoo.org/608018
* | eprefix.py: Adds EPREFIX variable to import in other placesDevan Franchini2017-02-151-0/+6
|/ | | | | X-Gentoo-Bug: 608018 X-Gentoo-Bug-URL: https://bugs.gentoo.org/608018
* ebuild.py: fix bashismPaolo Pedroni2016-05-121-1/+1
| | | | | | | X-Gentoo-Bug: 561798 X-Gentoo-Bug-URL: https://bugs.gentoo.org/561798 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* config.py: Fixes package version checking regressionDevan Franchini2015-07-101-9/+12
| | | | | | | | | | | Previously webapp-config would not do any sanity checks when setting the package version. After adding a sanity check in 1.54 I made the mistake of not being flexible enough and this caused a regression that prevented web apps with versions such as "20140929d"[1] to be installed. This commit fixes that while still allowing for some sanity checking. [1]: https://github.com/gentoo/webapp-config/issues/2
* version.py: Modifies version to reflect git statusDevan Franchini2015-07-031-1/+1
|
* webapp-config.8.xml: Updates man page in accordance with command line arg ↵1.54Devan Franchini2015-07-031-34/+83
| | | | | | | | | | changes Other changes have been made, including: * Formatting of command examples * Changing short-hand flags to show they no longer require two dashes * Adding information on the --prune-database flag. * Code cleanup
* webapp-cleaner: Fixed incorrect use of -lui flagDevan Franchini2015-07-031-1/+1
|
* Bump to version 1.54Devan Franchini2015-07-024-7/+31
| | | | webapp-{eclass, config}.{5, 8}.xml: Adds Devan Franchini to authors
* config.py: Moves setting of g_orig_installdir to allow lack of -d flagDevan Franchini2015-06-191-4/+4
| | | | | | If this is not moved the .webapp file will not have WEB_INSTALLDIR properly set when running "webapp-config -I <PN> <PVR>" which causes issues when trying to uninstall the webapp.
* config.py: Suppresses warning message for lack of -d flag for --queryDevan Franchini2015-06-191-1/+2
|
* db.py: Reverts OUT.info() call to print() in listinstalls()Devan Franchini2015-06-191-1/+1
|
* config.py: Readds the "dir" key to the option_to_config termDevan Franchini2015-06-191-0/+1
|
* config.py: Message clean upsDevan Franchini2015-06-191-12/+11
|
* config.py: Allows for -lui to not have any arguments passedDevan Franchini2015-06-191-41/+43
| | | | | | | Other command line flags such as -I, -C, or -U will always expect 2 command line args. If they are not properly supplied then that is handled by argparse. This commit allows for the -lui flag that can have 0 up to 2 optional flags passed to have that 0 flags passed.
* config.py: Adds optionality to --dir flagDevan Franchini2015-06-191-3/+12
| | | | | | If the --dir flag is not specified with actions that require the dir flag then webapp-config will default to the name of the package as the installation directory.
* config.py: Removes unnecessary .keys() call for option_to_config dictDevan Franchini2015-06-191-7/+7
|
* {config, db}.py: Adds proper support for list-installs commandDevan Franchini2015-06-192-17/+28
| | | | | | The webapp-config man page says that the --list-installs flag can be the package name, and/or version, or "*". So changes needed to be made to allow for this functionality.
* webapp.eclass: Changes order of command line flagsDevan Franchini2015-06-191-5/+5
| | | | | | The change from optparse to argparse requires the flags for upgrading, installing, or removing a webapp to specify both package name and package version after the flag.
* external.py: Modifies assertion to reflect the expected non-existant webapp ↵Devan Franchini2015-06-191-1/+1
| | | | result
* config.py: Modifies import strategy for config parserDevan Franchini2015-06-191-7/+4
| | | | | | | | | | | | | | | On systems which had dev-python/configparser installed (a package to add support for the py3.x configparser class in py2.x) webapp-config would make use of that class instead of py2.x's built in ConfigParser class. This would lead to improper interpolation of configuration variables that follow the syntax "${<var>}". This dangerous behavior could (and has) lead to webapp-config installing a webapp to the root filesystem of a host. This danger has been avoided by modifying the import strategy for the config parser we're using so that we force import the ConfigParser class if using py2.x. X-Gentoo-Bug: 528752 X-Gentoo-Bug-URL: https://bugs.gentoo.org/528752
* setup.py: Adds Devan Franchini to list of authorsDevan Franchini2015-06-191-1/+1
|
* Adds WebappAdd and WebappRemove tests to external test suiteDevan Franchini2015-06-193-141/+81
| | | | | | tests/dtest.py: Deletes dtest.py tests/external.py: Adds tests for WebappAdd and WebappRemove worker.py: Removes doctests
* Adds Protection tests to external test suiteDevan Franchini2015-06-193-82/+55
| | | | | | tests/dtest.py: Removes WebappConfig.protect from doctest listing tests/external.py: Adds tests for Protection class protect.py: Removes doctests
* Adds FileType tests to external test suiteDevan Franchini2015-06-193-81/+37
| | | | | | tests/dtest.py: Removes WebappConfig.filetype from doctest listing tests/external.py: Adds tests for FileType class filetype.py: Removes doctests
* Adds Ebuild tests to external test suiteDevan Franchini2015-06-193-143/+37
| | | | | | | | tests/dtest.py: Removes WebappConfig.ebuild from doctest listing tests/external.py: Adds tests for Ebuild class ebuild.py: Removes doctests, the tests used for testing run_hooks() were not added to the external test suite due to the fact that there is no return to check against, just output.
* Adds DotConfig tests to external test suiteDevan Franchini2015-06-193-67/+43
| | | | | | tests/dtest.py: Removes WebappConfig.dotconfig from doctest listing tests/external.py: Adds tests for DotConfig class dotconfig.py: Removes doctests
* Adds WebappDB and WebappSource tests to external test suiteDevan Franchini2015-06-193-176/+121
| | | | | | tests/dtest.py: Removes WebappConfig.db from doctest listing tests/external.py: Adds tests for WebappDB and WebappSource classes db.py: Removes doctests
* Adds beginning stages of external test suiteDevan Franchini2015-06-193-167/+138
| | | | | | tests/dtest.py: Removes WebappConfig.content from doctest listing tests/external.py: Adds tests for Contents class content.py: Removes doctests
* {config, server}.py: Adds Tracd server supportDevan Franchini2015-06-193-2/+15
| | | | | config/webapp-config: Adds changes to config to reflect the addition of new server support.
* config.py: Improves package version checkingDevan Franchini2015-06-191-3/+10
| | | | | | | With the previous method of setting the package version you were unable to pass the package version to webapp-config if it had more than one decimal point (ex: 1.0.1 wouldn't work), this commit attempts to fix that issue.
* config.py: Modifies --list_unused_installed to nargs = "*"Devan Franchini2015-06-191-1/+1
| | | | | | | In order to allow the nature of --list_unused_installed to remain true to the nature of the command line arg, the nargs has been changed to "*". This allows --list_unused_installed to be called with 0 or more args via the argparse python class.
* config.py: Adds more thorough checking for setting self.workDevan Franchini2015-06-191-2/+2
|
* config.py: Changes --query nargs to 2Devan Franchini2015-06-191-1/+1
|
* config.py: Adds "query" to list of actions to get pn and pvrDevan Franchini2015-06-191-1/+1
|
* config.py: Fixes list-installs help messageDevan Franchini2015-06-191-4/+4
|
* version.py: Updates version to reflect being on gitDevan Franchini2015-06-191-1/+1
| | | | | To show users that they are running a live version of webapp-config the version has been changed to reflect that.
* config.py: Adds exception handling for setting env varsDevan Franchini2015-06-191-3/+6
| | | | | | | | | | In some cases when setting environment variables you can encounter an issue where you are trying to set a config value based on the the environment variable and you run into a runtime error. One notable situation is when you try to run webapp-config --envall while running py2.7, you will run into an interpolation issue if one of your environment variables includes a sort of interpolation syntax such as: %s.
* {config, debug}.py: Migrates from optparse to argparseDevan Franchini2015-06-192-345/+368
| | | | | | | This migration includes changes to how args are handled, along with the semi-alphabetization of the command line args as well as all necessary changes to have webapp-config properly work with argparse in both py2.7 and py3.x.
* webapp-config.8.xml: clarifies man page for --dd and --vf flagsDevan Franchini2015-06-191-5/+31
| | | | | | | | | | | This commit corrects a typo where the short option for --default-dirs is --vd instead of --dd, this has been corrected. Secondly, it also attempts to make it clearer to the user that the --dd and --vf options are two separate options and should not be treated equally by listing them in two separate variable list entries. X-Gentoo-Bug: 257592 X-Gentoo-Bug-URL: https://bugs.gentoo.org/257592
* {config, debug}.py: Removes deprecated use of __dict__ invocationDevan Franchini2015-06-192-37/+37
|
* Adds python3.x compatibility to codebase.Devan Franchini2015-06-198-28/+28
| | | | | | | Although most of the codebase already has python3.x compatibility when running 2to3 more minor changes where found. This commit includes the changes found when running 2to3 on webapp-config's codebase.
* sbin/webapp-cleaner: alters source to /lib/gentoo/functions.shDevan Franchini2014-03-111-1/+1
|
* Bump to version 1.531.53Devan Franchini2014-01-241-1/+1
|
* WebappConfig/db.py: Properly closes install file after writing.Devan Franchini2014-01-241-0/+1
| | | | | | | | | | | | | | | When webapp-config cleans out a webapp installation it needs to remove the database entry of the file from it's designated installs file. If more than one database entry is in the installs file it should still list the database entry for the webapp that isn't being removed. The logic is all there in db.py but after the file has rewritten the entries it doesn't close the file properly and causes a failure in the check right after the write(), which then unlinks the installs file and removes the entries from webapp-config's database. X-Gentoo-Bug:494520 X-Gentoo-Bug-URL: https://bugs.gentoo.org/494520