summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* version.py: Updates version numberHEADmasterDevan Franchini2017-06-221-1/+1
|
* Merge pull request #6 from SpiderX/masterDevan Franchini2017-05-222-2/+14
|\ | | | | Adds uWSGI server support
| * Adds uWSGI server supportVladimir Pavljuchenkov (SpiderX)2017-01-092-2/+14
| |
* | 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
|
* Bump to version 1.54Devan Franchini2015-07-021-1/+1
| | | | 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.
* 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
* 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-192-2/+14
| | | | | 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.
* {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.
* 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
* WebappConfig/config.py: Fixes spacing issue in --help output.Devan Franchini2014-01-241-1/+1
|
* WebappConfig/db.py: Slightly alters prune_database() algorithm.Devan Franchini2014-01-241-3/+1
| | | | | | | | | | | | When the prune_database() function checks to see if a webapp is installed in the directory the database says it's supposed to be installed in it originally checked to see if a .webapp file existed in the directory. But due to the fact that a .webapp file could exist in a directory and not be the webapp that is listed as installed in that directory it was decided that checking the existance of the .webapp-<webapp>-<version> file would be better as it confirms that a webapp exists in that directory and it is the webapp that it is supposed to be.
* WebappConfig/content.py: Nulls doctest code in add() function.Devan Franchini2014-01-241-18/+18
| | | | | | | | | Due to the variable nature of the output in the add() function in content.py it was dicussed that the best decision would be to disable the failing doctest code and prevent it from causing failures. X-Gentoo-Bug: 430010 X-Gentoo-Bug-URL: https://bugs.gentoo.org/430010
* WebappConfig/ebuild.py: Nulls doctest code in run_var()Devan Franchini2014-01-241-23/+23
| | | | | | | | | | | | Due to the variable nature of the output of the run_var() function it is unrealistic to create doctest code that will not fail a test. This is mainly due to the fact that there are particular variables that may never be the same on any two user's systems. It has been decided that the best solution would be to simply "comment out" the doctest code to prevent it from running and causing failures. X-Gentoo-Bug: 430010 X-Gentoo-Bug-URL: https://bugs.gentoo.org/430010
* WebappConfig/config.py: Uses maybe_get() function instead of get().Devan Franchini2014-01-241-3/+1
| | | | | | | | | | | | | | | This changes the use of the get() function in the split_hostname() function in favor of the maybe_get() function. This change still allows vhost_subdomain_# variables to be set in /etc/vhosts/webapp-config without the risk of it being overwritten except due to the use of the maybe_get() function it will no longer give warnings to the user if a vhost_subdomain_# variable is not found. This is ideal because it removes the need of masking the warning in the get() function. X-Gentoo-Bug: 300250 X-Gentoo-Bug-URL: https://bugs.gentoo.org/300250 X-Gentoo-Bug: 349491 X-Gentoo-Bug-URL: https://bugs.gentoo.org/349491
* WebappConfig/config.py: Prevents overwriting config variables.Devan Franchini2014-01-241-1/+4
| | | | | | | | | | | | | | | | | | When setting vhost_subdomain_# variables in /etc/vhosts/webapp-config they have a possibility of being overwritten by the split_hostname() function. To see this happen you should set vhost_subdomain_1 to a value and try and use it as a variable in your config file. This will then get overwritten by your vhost_hostname. This commit will prevent that from occuring while also having the get() method ignore the inexistence of a vhost_subdomain_# variable in your config file, due to the fact that if the variable does exist it will be used, and if the variable does not exist then it will get overwritten by a piece of vhost_hostname that is separated by the "." delimiter. X-Gentoo-Bug: 300250 X-Gentoo-Bug-URL: https://bugs.gentoo.org/300250 X-Gentoo-Bug: 349491 X-Gentoo-Bug-URL: https://bugs.gentoo.org/349491
* WebappConfig/db.py: Removes printing of 'action' when calling prune_database().Devan Franchini2014-01-241-1/+0
|